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