Set Session State with JavaScript and dynamic action

January 16, 2015 at 9:38 am | Posted in Oracle Developement | 6 Comments
Tags: , , , , ,

I have two page items, P1_FIRST_NAME and P1_LAST_NAME whose values I wish to remain in session state. Here are two ways you can achieve this.

To have item values persist in session state with JavaScript in APEX, you can use the following code:

apex.server.process(‘DUMMY’,{pageItems: ‘#P1_FIRST_NAME,#P2_LAST_NAME’},{dataType: “text”});

An alternative method would be using a dynamic action that fires a dummy PL/SQL process. The action allows you to specify page items to submit in session state.;

PL/SQL Process to Set Session State

PL/SQL Process to Set Session State


RSS feed for comments on this post. TrackBack URI

  1. Hello
    Where are you adding the Javascript code or where are you creating the Dynamic Action:?

    • Bobby,
      you simply add it to the Dynamic Actions node in your page editor.

  2. Great!!!!

  3. should calling a PL/SQL call of null; have any kind of performance impact? mine seems to be quite slow. Is there a more efficient dummy code that I can call?

    • More efficient than null? Probably not.
      You may have a performance issue elsewhere on the page.

  4. Easy when we know it! Still had to think about it! Thank you !

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Entries and comments feeds.

%d bloggers like this: