I'm using Apex version 5.1.1.00.08
I need to submit the page when a user navigates to another page.
The submit page process saves the values on the current page to a table in my database.
I created a Dynamic Action to fire on Page Unload with a True Action of "Submit Page" - the process is not getting called.
I created a Dynamic Action to fire on Page Unload with a True Action of Javascript with this code:
apex.submit( {
request: "SAVE_DATA",
showWait: true,
} );
Before resorting to the Page Unload/Submit Process I was saving values on change of each page item, but I started getting deadlock errors presumably because the Dynamic Action that was calling the stored procedure to save the values was not waiting until the procedure finished before allowing users to continue data entry on the page. This was happening even though the parameter was set to Wait.
Suggestions?
The requirements are that the values must be saved in a temporary table without the user clicking a save button as they navigate from page to page.