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.

How to trigger Dialog Close Event when using APEX_UTIL.PREPARE_URL?

XxMmedinaxXOct 4 2018 — edited Oct 4 2018

Hi all!

I'm trying refresh a region whenever I close a Dialog Modal but the event is not triggering.

I'm using APEX_UTIL.PREPARE_URL to open the modal page.

Can you help me please?

Thanks in advance.

This post has been answered by Dharmendra Kumar-Oracle on Oct 4 2018
Jump to Answer

Comments

Answer

Declare the function in parent page to trigger the refresh event.

function customEvent(event, data){

    apex.event.trigger( "#REGION_ID", "apexrefresh" );

}

Call it from the dialog page, put it in Dialog attribute

close: function() { customEvent('customDialogClose', {modalPageId: 'MODAL_CLOSE_FIXED'});}

Marked as Answer by XxMmedinaxX · Sep 27 2020
XxMmedinaxX

Thanks, It Worked!!

1 - 2

Post Details

Added on Oct 4 2018
2 comments
1,035 views