Close modal dialog page and refresh the page Oracle APEX

charlie tsai picture charlie tsai · Jun 22, 2017 · Viewed 27.2k times · Source

I am trying to close a modal dialog page after changes have been made and then refresh the edit form that was underneath the modal dialog in Oracle Apex.

I tried using dynamic action to close the dialog, but it seems that the dynamic action proceeds the processing step, resulting in the data not being saved into the database after the modal dialog has closed.

modal dialog = page edit form = page

modal dialog is a pop out on the edit form

Is there a way to close the dialog, while saving the data and also refresh the edit form?

I think there is a way to also redirect to previous page but I do not know how to do that.

Answer

Ashish Sahay picture Ashish Sahay · Jun 22, 2017

Yes there are many ways to close the dialog box while saving the data.

  1. you can use the process for dialog close, process should be after your process which is saving data.

  2. Javascript: please refer below link

http://ashishtheapexian.blogspot.in/2017/06/refresh-region-of-base-page-when.html

https://apex.oracle.com/pls/apex/f?p=1200008:15:132444785184935::NO:RP:P15_POST_ID:142

  1. Branching : You can create a branch after processing point. this will redirect and close the dialog after saving you data to the database.