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!

Calling Multiple Validations/Processes via Different Points

jaramillJun 1 2024 — edited Jun 1 2024

APEX version is 21.2

Database is 19c (19.0)

I have an application and on one page, there is a Save button, and another button to go to another page but as a “pop-up” window.

The requirement is to add the same capabilities that the Save button does to the “other” button so that the user doesn't have to do 2 clicks (click Save first, then click the other button). Clicking just “Save” will save and stay on the same page. By giving the user this other option, it avoids an extra mouse click.

My dilemma is that the Save button (setting aside the Dynamic Action of Execute Javascript, and Submit Page) has multiple validations and multiple processes tied to it where the setting for Server-side Condition “When Button Pressed” is tied to the “Save” button.

Since there isn't an option to add multiple buttons (as you see from image above it's a drop-down to select only 1), my only option is to DUPLICATE all those validations, processes. Obviously duplicating code leads to maintenance issues down the road and is a brute-force way that I'd like to avoid.

So my question is, Is there a way to call the same validation or process via different entry points? In my case another button.

This post has been answered by jaramill on Jul 2 2024
Jump to Answer
Comments
Post Details
Added on Jun 1 2024
6 comments
698 views