I am trying to set a value of a page element on page load in the beginning. The value is dependent on another element that has already been retrieved from the DB and is already set at the beginning.
To set the id I created a function and I call this function for the dynamic action on page load like this:
declare
id number;
begin
id:= set_ID(V('P1_page_item'));
apex_util.set_session_state('P17_ID',id);
end;
However the value for the page item is not being set. Do you have any suggestions how an page item value can be set on page load?