I use Page 0 variables that are displayed in a Page 0 region. This variable is then displayed in all pages of my application.
The problem is:
I save a value to Page 0 using Set_session_state and the value is set fine.
The problem is that it does not refresh the value on the page. Only when I move to another page does the Page 0 variable refresh and show correctly at the top of the page.
What am I doing wrong? Previously I had no problems showing session state, but when I moved to a pop-up window, my problems began. Now have to move to another page in order for the latest Page 0 values to display.
Thanks in advance for your help!!
What I understand, you just set session state to database, but you do not change value in HTML document.
Example in apex.oracle.com might help understand problem and what you actually doing.
I see you are setting the page zero item fine in session may be by using some kind of ajax or dynamic action right?
At the same point of time , do make a call to this code also
If its a display item , then use like this $("#P0_DISPLAY_ITEME_NAME).text('valuehere'); / $("#P0_DISPLAY_ITEME_NAME).html('valuehere');
My problem is not that I populate the HTML document with the Session State Variable from Page 0. I dont' do that. The problem is, after I set Session State, the Application variable does not appear in a Region 0 area that I define in Page 0 that replicates throughout all pages of my application. For some reason, it is not refreshed in the screen.
I have a button that opens a pop-up window. from the pop-up, a user can select from a list of projects. When they select the one project they wish to be working in, they click a button to set the variable and close the pop-up. Then I set the Page0 variable with the Set Session State function through a PL/SQL Anonymous block. Once that process is called and executed, the pop-up is closed and the project should appear in the Page 0 defined region of the parent window. But it does not do so, until I select another page. Then the Page 0 region is populated. UGH!
I uploaded my app to the APEX.ORACLE.COM website, but the updates don't work at all there. I'm guessing the 4.2.3 version of APEX has changed enough that my code no longer works.
My workspace is PSGCA. Userid: Valerie.Belcher@Williams.com PSWD: Rickert50; Select I & I application. Userid: guru Password: guru.
Run application. Click on 'Set FP Number'. A pop-up window comes up. Select a project and click 'Set FP'. The project is supposed to be displayed at the top of the screen under: The Funding Project Number for this session is:' Nothing displays.
The session state variable is an Application Variable (F101_FPC_NUMBER), so it will populate in all pages no matter where you are (the region is also defined in Page 0 so the region displays on all pages). The parent page just needs to be refreshed for the value to show up. right?