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!

How to set ORDER BY clause with an item's value?

DannyS-OracleJun 12 2017 — edited Jun 13 2017

Hi everyone,

I am wondering if there is a way to supply the ORDER BY clause with an Apex item's value? For example, if I have a Select List item (P1_ITEM) and select the PERSON_NAME column, how to specify something like this correctly:

select PERSON_NAME, PERSON_AGE

from MY_PERSON_TABLE

order by :P1_ITEM;

When I tried the syntax above, my generated Classic Report did not order the returned result...

Btw, I do not use the built-in Classic report's ordering feature (by clicking the column's name) because we want to remove all AJAX call (the security auditor said using AJAX won't comply with the company's security policy).

Thanks in advance.

This post has been answered by fac586 on Jun 12 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2017
Added on Jun 12 2017
3 comments
2,492 views