Syed Shakir-Oracle wrote:
I'm working on requirement where I've list of groups in select list and selecting a group and clicking on Add Row button would take me to different page where I've other items including group item (Display Only). I'm using the redirect page in this application for the Add Row button (previous page button ) behavior.
As part of redirection I'm setting two page items
one is from the select list group name to the display only item in the new page.
and the other item is page id to the hidden item in the new page
I'm getting the page id in the hidden item on the new page, but I'm not getting the select list item to the display only page item of new page.
sometimes it's getting null and sometimes it's getting the old value from cache(probably).
Could you please suggest your inputs and let me know in case of any more information is required please?
This is a classic problem that always traps new developers.
A redirect button navigates to a URL that is generated using session state as it existed when the button was rendered during page show processing. It cannot therefore pass an item value that has just been selected by the user at runtime. There is no dynamic link between the value specified in the redirect URL, the current value of the item in the browser, or the value in session state at the time the redirect is performed.
The simplest solution is to change the button action to Submit Page, which will update session state with the new item value, and then navigate to the target page using a branch. Set the values required in the target page using the branch properties. Make the branch conditional on the button being clicked, and execute it at the relevant processing point depending on whether validation and processing of the source page is required:
Point - Select the point in the processing at which this branch action is considered. Options include:
- After Submit (previously named Before Computation)
- Validating (previously named Before Validation)
- Processing (previously named Before Processing)
- After Processing (previously named After Processing)
Workspace - SHAKIR
USER : APEX_USER
Pages 22 and 24, please check. now I'm not able to see value in the previous in this example.
Thanks for your quick help. It's working fine now.
My issue got fixed by submitting a page and creating a branch at after submit.