I am facing an issue in Oracle Apex (v5.1).
I have a dialog page that opens up from the parent page on clicking of an icon. On Closing the dialog page,my parent page submits on the event 'Dialog Closed' and a process which runs on the processing of the submit of parent page which seems to be not working. In that process,I have certain APEX_ITEMS whose values are being set on submit of the parent page. Is there any way to make the process run?
Extra Description : I have an Interactive report which is fetched from a table say 'Temp', the report has links in some of the columns. When a user clicks the link he is redirected to a modal page (while setting an application variable say 'APP_VAR' to zero) and user can modify some data there. In the modal page when user clicks 'Submit' button a process runs and updated the temp table and sets value of 'APP_VAR' to '1' and then page is refreshed. On the same modal page there is a Dynamic Action written on 'Page Load' with server side condition of 'APP_VAR' = '1', this Dynamic Action closes the modal page with 'Close Dialog' action.
Now when the modal page is closed on parent page there is a dynamic action written on 'Dialog Closed' event which submits the parent page. Also there is a process 'Update Parent' on condition of 'APP_VAR' ='1' which updates the 'temp' table with all the values from parent page (As user can change some of the values in the report.) and sets APP_VAR to 0.
All of this is done in order to keep the temp table updated with values from both pages. But when modal page closes the parent page refreshes before 'Update Parent' process is completed leading to loss of any changes made in parent page.
How can I run 'Update Parent' before the page reloads? please keep in mind that before 'Update Parent' runs the report data needs to be submitted to session state in order to get the updated data.