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!

APEX 5 Theme 42 Close Dialog DA when not initiated from a button click

Bas de KlerkMay 21 2015 — edited May 22 2015

Hi,

I'm trying to convert all my older Skillbuillder Modal Dialogs to the new APEX 5 modal dialog. The problem I'm having is catching the Close Dialog event on the main page when the Modal page is closed.

This works great when I initiate the dialog page from a button by setting the button to redirect to a page in the application and create a DA on the same button of type "Close Dialog", then when the modal closes the DA is executed.

But when I initiate the modal page from a dynamic action using javascript ( window.location = <<url to modal page>> ) the modal works fine but I have no clue on how/where/what to catch the closing event so I can refresh the main page. The initiator of starting the modal page is mostly the value of a page item being changed in this app so not from a button click.  Depending on the value of the item a certain DA fires and calls a specific modal windows, so 1 item can initiate multiple different modal pages depending on it's changed value.

For the skillbuilder modal plugin you would set an ID for the modal window and listen for that specific instance to close but not sure how to handle this in APEX 5.

Any help much appreciated .

Regards

Bas

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2015
Added on May 21 2015
1 comment
924 views