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!

apex_util.set_session_state, variable binding and the on-load item value

Pavel_pJul 3 2018 — edited Jul 4 2018

Hello,

I have a page 1, page item P1_X and the following process in the processing section

begin

  :P1_X := 'A';

  apex_debug.message('DEBUGMSG: P1_X value = %s', :P1_X); --A as expected

  apex_util.set_session_state('P1_X','B',true); --now set the session state to B

 

  apex_debug.message('DEBUGMSG: P1_X session value = %s', apex_util.get_session_state('P1_X')); --B as expected

end;

so at the end of processing the item should be always 'B', thus on the page-load the session value should be B (after the first submit).

However when I submit the page (without any manual editing), on the page-load the item's value is once A, on the next submit it's B and so on, every submit changes the value from A to B.

Please, could anybody explain what's happening under the hood and why it's once A and the other time B?

I created a showcase on apex.oracle.com

workspace: pp_test

user: test

pwd: test

Application 94915 - apex_session

Thanks a lot

Pavel

This post has been answered by Alexiswcg on Jul 3 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2018
Added on Jul 3 2018
4 comments
1,076 views