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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Confirm - Dialog Close

Jared CJan 15 2025

APEX 21.1.5

Hi, I have a parent page with a button that opens a modal dialog page. I want to present a confirmation to the user whenever the modal dialog is closed / exited, whether through the “X” button or the ESC key or whatever. However, I'm having some trouble figuring this out.

The seemingly obvious choice is to create a DA on “Dialog Closed” but it kind of doesn't make sense. One of the attributes for a DA on “Dialog Closed” is Selection Type… but why would an event tied to a dialog closing care about a region / item / etc.? The dialog as a whole is closing, not the region / item / etc.?

I tried this anyways, tying the Dialog Closed event to the button that opens the modal dialog on the parent page, as well as tying it to a region on my Modal Dialog page… no luck either way. I'd rather not have to do this through JavaScript (though I did try this too)… surely there is a simple declarative way to do this?

Thank you!

This post has been answered by Karel Ekema on Jan 16 2025
Jump to Answer
Comments
Post Details
Added on Jan 15 2025
7 comments
91 views