Refresh region of base page when closing modal dialog | Oracle APEX

Here is the requirement for refreshing the report on the base page, to do so I am just creating a Dynamic

  • Action (DA):-
    • Parent Page :
    • Create Dynamic action
    • Event > Dialog Closed
    • Selection type > Javascript Expression
    • Condition > JavaScript Expression> window
    • If You are working with APEX 5.0 then
    • Client-side Condition>JavaScript Expression> window
  • Type:-
    • JavaScript Expression
this.browserEvent != "load" && this.data.dialogPageId == "pageno"
* True Action > Refresh
* Affected Elements > Selection Type > Region
* Region> Select your region

Demo

A new “Dialog Closed or Canceled” event will fire if a user presses the Escape key or the X button in the dialog.