Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
14
rated 0 times [  19] [ 5]  / answers: 1 / hits: 37555  / 13 Years ago, wed, march 30, 2011, 12:00:00

I'm using Oracle APEX but am unsure how to access the following variables from an external javascript file that may be located on the app server or stored in Shared Components -> Static Files.



:APP_ID
:APP_PAGE_ID
:APP_SESSION


How can I reference the values for each of the above from javascript (stored as a Static File)?


More From » oracle-apex

 Answers
15

These values get rendered on the page as hidden items like this:



<input type=hidden name=p_flow_id value=4000 id=pFlowId />
<input type=hidden name=p_flow_step_id value=4150 id=pFlowStepId />
<input type=hidden name=p_instance value=6528421540413702 id=pInstance />


so you can reference them as:



$v('pFlowId') // APP_ID
$v('pFlowStepId') // APP_PAGE_ID
$v('pInstance') // SESSION


It's a pity they aren't named the same as the session state!


[#93019] Monday, March 28, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tammyb

Total Points: 278
Total Questions: 101
Total Answers: 103

Location: Botswana
Member since Sat, Jan 7, 2023
1 Year ago
;