COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: barrysaab on 10 Mar 2011 11:44:45 AM

Title: Dynamic Sorting
Post by: barrysaab on 10 Mar 2011 11:44:45 AM
I am actually trying to do dynamic sorting on four columns ex order no,order method ,product type,and product name but the sorting is dynamically done on order no only and remaining three columns remains static.Please help.Thanks
Title: Re: Dynamic Sorting
Post by: NimrodA on 10 Mar 2011 04:12:50 PM
The spec works perfectly here - 8.4.1. All columns are srted as they should be via d. through.
Title: Re: Dynamic Sorting
Post by: barrysaab on 10 Mar 2011 09:53:38 PM
Thanks,NimrodA.Bit strange! ,same spec giving me a problem.what could be the reason? Could anybody suggest,please.
Title: Re: Dynamic Sorting
Post by: barrysaab on 10 Mar 2011 10:28:36 PM
In the attached PDF,I have sorted on Oder Method but you can see the sorting is applied on Order Number only.Very confusing!.Thanks
Title: Re: Dynamic Sorting
Post by: barrysaab on 10 Mar 2011 10:30:53 PM
Prit,Mate! Are you there!!!
Title: Re: Dynamic Sorting
Post by: PRIT AMRIT on 11 Mar 2011 01:47:04 AM
QuoteI have sorted on Oder Method but you can see the sorting is applied on Order Number only

as per your attached XML spec the prompt macro defined as below and it would sort Order Number.

#prompt('p_SortColumn','token','[Sales (query)].[Order].[Order number]')#

If you want to sort on Order Method, then have you tried changing the expression to

#prompt('p_SortColumn','token','[Sales (query)].[Order method].[Order method]')#

Thanks
Prit
Title: Re: Dynamic Sorting
Post by: barrysaab on 11 Mar 2011 06:00:13 AM
Thanks,Mate.much appreciated.
Title: Re: Dynamic Sorting
Post by: vgyajangi on 11 Mar 2011 07:17:32 AM
Hi Barrysaab,
     I hope dynamic sorting is working for your report. Can you please share the final working report in xml attachment.
Thanks

Vinod
Title: Re: Dynamic Sorting
Post by: NimrodA on 11 Mar 2011 09:48:13 AM
barrysaab, let's see if we understand each other:
The default value you gave to the sort field is Oder Number. Each drill through link drills through to the same report passing the field's name as parameter, meaning - every click will sort the list dynamically according to the column header you clicked on. This works perfectly here with the spec you sent here. If it doesn't work for you, maybe try a different browser?
Title: Re: Dynamic Sorting
Post by: barrysaab on 11 Mar 2011 10:02:42 AM
Thanks,NimrodA.I will try. Thanks again.