Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Any way to have a default sorting Order along with the "Sort" option?

SumanaNov 25 2008 — edited Jan 9 2009
Hi All,

I have a 10 column report that must be displayed with a defualt sort order as 1 desc, 3 asc, 8 asc, 9 asc. I also need the ability for the user to sort the report on any of the 10 columns. How can I achieve this?


If I use ORDER BY in select query, I cannot allow the sort option (APEX does not allow me to).

If I give the sort option along with sort sequence, only the first time report is run, the default sort order I get. As soon as I click on any one column to be sorted in the front end, then next time I run the report it always sorts based on that column, instead of the default one.

Please let me know if I am doing anything wrong or how the above can be achieved? Any suggestions welcome..

Thanks,
Sumana
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2009
Added on Nov 25 2008
10 comments
855 views