title: Oracle apex 5 refresh region/item on parent page after close modal
body: <p>Source: <a href="https://stackoverflow.com/questions/48474907/oracle-apex-redirect-to-modal-dialoge-page-from-pl-sql-code/50897967#50897967">oracle apex redirect to modal dialoge page from pl/sql code</a></p>
  
  <p>I need to update the item in the parent window after closing the modal window. The peculiarity is that by pressing the button, the custom JS code (after apex_util.prepare_url (p_url, p_triggering_element) ) is executed and one of the conditions opens the modal window. How can I catch the closing of this modal window? The standard dynamic action "dialog is closed" does not catch this event. According to the assigned J selector # URLS likewise does not work - it is in the HTML page, but not caught through the browser console $ ('# URLS').</p>