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!

Different value for page item on different regions on same page?

Kevin ZhangMay 10 2011 — edited May 10 2011
Hi All:

I am using APEX 4.0.6 and I have a page that have 4 regions and each of region is showing a classic report whose SQL is very similar to each other:

e.g.

For region 1, the SQL looks like select * from history where status = 'A';
For region 2, the SQL looks like select * from history where status = 'B';
For region 3, the SQL looks like select * from history where status = 'C';
For region 4, the SQL looks like select * from history where status = 'D';

For best database performance, I like to create a page item called p_status_value on this page and using the following binding syntax for SQL statement for all 4 regions:

select * from history where status = :p_status_value;

however, I need this page item value is dynamically change for each region:

For region 1, p_status_value = 'A';
For region 2, p_status_value = 'B';
For region 3, p_status_value = 'C';
For region 4, p_status_value = 'D';

Also, I need hide this page item on this page.

Can anyone show me how to do this?

Thanks in advance!

Kevin

Edited by: Kevin Zhang on May 10, 2011 1:03 PM
This post has been answered by TexasApexDeveloper on May 10 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2011
Added on May 10 2011
4 comments
427 views