Skip to Main Content

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
Post Details
Added on Dec 13 2017
3 comments
1,491 views