Trigger dialog close event in Apex

In order to trigger dialog close event in APEX 5. You can write the following javascript code in the function and global declaration part of parent page. It refreshes the particular part of page.

function customEvent(event, data){  
    apex.event.trigger( "#REGIONID", "apexrefresh" );  
}  

In modal page, put it in the dialog attribute.

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

One thought on “Trigger dialog close event in Apex

Leave a Reply

Your email address will not be published.