Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Refreshing page item after session state changed

dantel35Dec 13 2017 — edited Dec 19 2017

Dear community members,

I have a question.

So one can set the session state of a page item using apex_util:

APEX_UTIL.set_session_state(

p_name => v_page_item

, p_value => v_some_value);

This does what it should, it actually sets the session state and this is fine (I can verify it works using the 'Session' button).

I have a Dynamic Action which does this.

But what if I want this to be visible on the page? How can I update or refresh (and redraw) the DOM value of an item with the corresponding session state? A dynamic action with a 'refresh' does not work for me. I tried using it on a region and also on individual items, it simply does not update the visible value.

The use case is I have a key->value list, where 'key' holds a page item name (without the 'PXX_'-prefix, which I add dynamically depending on the page I am on) and 'value' has the corresponding value. I want to loop through the list and update the items that are present in it (and let other items unchanged, they even might not exist on the page). This happens after a user hits a button.

Any help is appreciated.

Thanks!

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 16 2018
Added on Dec 13 2017
3 comments
2,818 views