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!

reading session state item value in javascript not working

srgarg-OracleJun 29 2021

Application Express 20.2.0.00.20
WHAT AM I TRYING TO DO:
created a wizard that takes user input over first two pages.
On the third page of wizard, I have created a dynamic action that is triggered on "Page Load".
This dynamic action is a javascript code. In the javascript code I am trying to show page success message:
apex.message.showPageSuccess($v("P3_ITEM"));
But the message is shown with null value.
The session state of page item has the value set as I can see in the window that opens up on clicking 'Session' at the bottom of page.
image.png
In browser console, apex.item("P3_ITEM").getValue() also returns empty string ""
I am not able to figure out what is wrong. The item value is set i can see in Session State pop up window but not being able to read on the application page.

This post has been answered by fac586 on Jun 30 2021
Jump to Answer
Comments
Post Details
Added on Jun 29 2021
7 comments
3,449 views