COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: vsudaya on 22 Jun 2006 10:12:45 AM

Title: dynamic sorting
Post by: vsudaya on 22 Jun 2006 10:12:45 AM
Hi all,

I have requirement where i need to sort on different fields(eg:ProdcutlLIne,Product Name, Product value ascending,descedning) dynamically in report viewer. The report should be grouped on Product Line and Product Name. I need group wise values, names sorting(ascending and descending) and inside group also values to be sorted.

my data displayes like this

Regards
Udaya
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã, 
Title: Re: dynamic sorting
Post by: angela on 22 Jun 2006 11:06:44 AM
We're looking for this functionality too.Ã,  So far the only solution I've seen is to use a value prompt which activates a sort key column (which is hidden) which contains a big IF or CASE statement.

Instructions to do so are here:

http://wiki.ittoolbox.com/index.php/FAQ%3AHow%5Fcan%5FI%5Fdynamically%5Fsort%5Fon%5Fdifferent%5Fcolumns%3F
Title: Re: dynamic sorting
Post by: bdybldr on 28 Jun 2006 10:08:21 AM
You could do it that way or you could create variables and define conditional styles based on those variables.  You could also use conditional block.  Keep us posted.
Title: Re: dynamic sorting
Post by: angela on 13 Jul 2006 08:12:20 AM
Support gave us some javascript solutions.  The version 7 one we cannot test.  There are 2 version 8 ones - only one works if you have a summary footer.  Those version 8 ones are listed on the bottom right side of http://businessintelligence.ittoolbox.com/groups/technical-functional/Cognos-ReportNet-L under the "Code" section.

Good luck.
Title: Re: dynamic sorting
Post by: sharu_bs on 04 Mar 2007 04:00:26 AM
Did u get any solution for this problem????? ???
Title: Re: dynamic sorting
Post by: angela on 05 Mar 2007 07:56:02 AM
At the bottom of this page: http://businessintelligence.ittoolbox.com/groups/technical-functional/Cognos-ReportNet-L is a section for Code.  There are some solutions there including one which doesn't need any Javascript at all.