This discussion is archived
5 Replies Latest reply: Jan 9, 2013 11:46 AM by Arie Geller RSS

How to Obtain the Value of a ***Global*** Application Item from JS

Joe Upshaw Journeyer
Currently Being Moderated
If we declare an Application Item, i.e. NOT a page level item, how do we obtain the value of that Item in a JavaScript Dynamic Action on a page?

For example, we declare a "global variable" as an Application Item named DEFAULT_AJAX_SEPERATOR and set its value with an Application Computation "On New Instance" At some later point, on a page in the application, we'd like to obtain the value of DEFAULT_AJAX_SEPERATOR via JavaScript.

The page* level item syntax...
$v( 'DEFAULT_AJAX_SEPERATOR' );
...does not work. I do understand why this is as $v can only access items on the page. However, APEX is clearly able to obtain such global values since, for example, they are available in PL/SQL blocks. Also, I know it's on the session object because I can see it when viewing the session.

So...what's the secret sauce for obtaining that value?

Thanks,

-Joe

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points