Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamic Actions Submit executing after separate submit of the page

ikedaaSep 1 2021

This is APEX 20.1. I have a modal page where I am entering 4 dimensions, width, height, left, and right, in 4 page items. The region type is "Static Content". The requirement is that each dimension be validated individually and stored in the database after change. As a value changes for a dimension, it changes the validation of the the other fields. When the validation fails on any individual dimension, another modal with a list of one or more of the violations is presented. Upon closing this list of violations modal, it returns to the original page. For various reasons I have chosen put a submit dynamic action after change of any of the dimensional page item. I also have a button that submits the page. The main purpose of this button is to close the modal.
Everything works as I desire when the user changes and tabs through the dimensions. The problem is when they enter a dimension and don't tab but rather immediately click on the button to submit the page. When this happens I get two submittals of the page. First the page is submitted by pressing the button and then the page is submitted by the dynamic action. The two submittals are playing havoc with my logic in the page processes.
Is there a way to prevent the two page submittals or at least have the page submittal from the dynamic action run first?

This post has been answered by Abdulkareem Al-Badani on Sep 1 2021
Jump to Answer
Comments
Post Details
Added on Sep 1 2021
2 comments
1,774 views