I am trying to create a Dynamic Action Type Plugin. In the Dynamic action plugin, one of the custom attribute is of the type PL/SQL Body returning varchar2 which goes something like this.
DECLARE
query_string varchar2(4000);
Begin
query_string := 'select firstname, lastname from student where id = '|| :PAGE_ITEM_ID;
return query_string;
END;
I found out that when the PAGE_ITEM_ID is updated by any other dynamic action, this dynamic action is still using the old value although the session value is already updated. I think this is because the dynamic action is rendered during the page load and hence uses the value at the time of page load.
Is there a way around this so that the above dynamic action uses the updated value?