Author Topic: dynamic sorting  (Read 858 times)

Offline vsud

  • Community Leader
  • *****
  • Posts: 93
  • Forum Citizenship: +1/-6
dynamic sorting
« on: 22 Jun 2006 09: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
                         

Offline angela

  • Senior Member
  • ****
  • Posts: 64
  • Forum Citizenship: +4/-0
Re: dynamic sorting
« Reply #1 on: 22 Jun 2006 10: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

Offline bdybldr

  • Global Moderator
  • Statesman
  • *****
  • Posts: 275
  • Forum Citizenship: +7/-1
Re: dynamic sorting
« Reply #2 on: 28 Jun 2006 09: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.

Offline angela

  • Senior Member
  • ****
  • Posts: 64
  • Forum Citizenship: +4/-0
Re: dynamic sorting
« Reply #3 on: 13 Jul 2006 07: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.

Offline sharu_bs

  • Full Member
  • ***
  • Posts: 7
  • Forum Citizenship: +0/-0
Re: dynamic sorting
« Reply #4 on: 04 Mar 2007 03:00:26 am »
Did u get any solution for this problem????? ???

Offline angela

  • Senior Member
  • ****
  • Posts: 64
  • Forum Citizenship: +4/-0
Re: dynamic sorting
« Reply #5 on: 05 Mar 2007 06: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.