This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

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

XxMmedinaxX
XxMmedinaxX Member Posts: 13 Red Ribbon
edited Oct 4, 2018 12:15PM in APEX Discussions

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.

Tagged:
XxMmedinaxX

Best Answer

  • Dharmendra Kumar-Oracle
    Dharmendra Kumar-Oracle Member Posts: 120 Employee
    edited Oct 4, 2018 11:58AM 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'});}
    XxMmedinaxXXxMmedinaxX

Answers