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