Dialog Closed Event from Custom URL built using APEX_UTIL.PREPARE_URL

With apex 5 on-wards, we have Dialog Closed event in dynamic action. This can be used in many places such as, you want to refresh your parent region when a record has been modified from Dialog Page.

But, when your dialog page URL is built using APEX_UTIL.PREPARE_URL, and you want to call Dialog Closed event? This will by default not detected with any of your dialog close selector.

So, purpose of this blog is to introduce you "p_triggering_element" parameter in APEX_UTIL.PREPARE_URL function. You have to set value of this parameter something like "apex.jQuery('#<your_parent_region_static_id>')".

This will now detect On Dialog Close event with your parent region as a Selection Type in dynamic action configuration.

Hope this helps!

Regards,
Jaydip Bosamiya
jbosamiya@gmail.com

Comments

  1. Good tip. An example with a screen shot would be helpful.

    ReplyDelete
    Replies
    1. Sure Robert. I will spare time to prepare example. Let me know if you have any specific question around this.

      Delete
  2. Great Blog. Helped me to crack an issue.

    In one of my pages, modal dialog open event was getting fired based on select List item change event, so when Dialog was getting closed, I was not able to find the region. With this tip, I was able to find it and solve my issue.

    Thanks Jaydip Bosamiya for sharing you experience with APEX community.

    Regards

    Kinjan Bhavsar

    ReplyDelete

Post a Comment

My photo
Jaydip Bosamiya
I am Oracle APEX Consultant, Blogger and Integrator. All-rounder in building small, medium and enterprise applications. Extensive knowledge in various area of web-driven applications in Back-end (PL/SQL, SQL, Java), Front-end (Oracle APEX, HTML, JavaScript, CSS, jQuery, OracleJET, ReactJS), RESTful APIs, Third-party library integrations (Apex Office Print (AOP), Payment Gateways, Syncfusion, HighCharts) and APEX Plugins (HighChart, StarRating)

Popular posts from this blog

Convert Classic Report Card Template and Card List Template into Flip Card Animated Templates

jQuery Circular Progress Bar - Pie Chart

How to create your own customized nested report regions using jQuery