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!

Closing iframe windows and executing actions on parent page

FofanaDec 19 2016 — edited Dec 20 2016

Hi, there

I have a page 30 and have opened another page 40 in an iframe using this code:

pastedImage_0.png

Now On page 40, I submit and save my data and close the iframe window calling parent.apex.jQuery("#editcompany").dialog("close");

Now I want to do some actions on page 30 upon closing the iframe.

If I use the X icon to close the iframe without saving my data, fine but my actions get fired on page 30 because

both are using the same close setting in the dialogOptions.

To differentiate between the closing using SAVE button from the closing using X icon,I've defined an item P30_CLOSE_INDICATOR to set to 1 when saving but this does not work

because though I have the item set to 1 in the session it's still null at the time of checking in the Js code see yellow highlighted.

The other idea was to catch the click on the X icon and simply close the iframe but I don't succeed in overwriting the normal close action

any Idea ??

Thanks

This post has been answered by J-Lig on Dec 19 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2017
Added on Dec 19 2016
4 comments
1,006 views