This content has been marked as final. Show 6 replies
inka wrote:Set the Page Action when Value Changed to Redirect to Page (based on selected value) if you want the redirect to occur immediately without submitting the page.
I am using Apex 4.2 and Oracle 11g. I have a page with a select list on it. When user selects a value from the list I would like to redirect them to a different page based on the value they have selected. For example, if they selected value 1 they will be redirected to page 1, for value 2 they will be redirected to page 2.
How to accomplish it?
Create a branch of type Branch to Page Identified by Item (Use Item Name) and use the select list containing the page ID as the branch action if you want to navigate to the specified page after the page is submitted (and set Page Action when Value Changed to Submit Page if you want the select list to submit the page).
In the return value of the select. If you are using a dynamic select list then it would be something like:
or whatever..and then the redirect will take you to page 1 or 2 depending on which value is selected. Similarly, if you are using a static LOV then just include the page number as the return value when creating the list.
select ValueA d, 1 r from DUAL; UNION select ValueB d, 2 r from DUAL;