I'm using apex 5.1, universal theme and 11g DB.
I have a dml form with interactive grid and save changes button. I added another button to do something and i'm using JS apex.server.process to do some pl/sql code.
When this code completes even I click cancel the changes are already committed.
Example I have of programs the user have access to and I need a faster way to enter.
Instead of adding all the valid programs one by one I added a button to add all programs for group A only.
I need these changes to be part of the whole dml form so the expectation is if the user clicks cancel no changes will be committed to the DB.
Thanks