We are going to see in this article, how to refresh an Interactive Grid when Model dialog is closed.
For example, let us consider I have one normal page [Page number:6] and one model dialog page [ Page number:7].
Here when I close model dialog, I want to trigger a Dynamic action to refresh the Interactive Grid (IG). how to do it?
We can call the Dynamic action on "dialog closed" event to refresh the Interactive Grid (IG) when user press the button [e.g Cancel] from the Model Dialog.
For example, let us consider I have one normal page [Page number:6] and one model dialog page [ Page number:7].
Here when I close model dialog, I want to trigger a Dynamic action to refresh the Interactive Grid (IG). how to do it?
If suppose user press cross (X) icon in the model dialog, then the model dialog will be closed but "Dialog Closed" event will not work. We are going to see, how this will make it work.
I hope, you were aware of how to trigger a dynamic action on Dialog closed when user pressed cancel button.
Let us consider, I have created one normal page and one model dialog already.
Step 1: create a dynamic action on "Dialog Closed" event in Interactive Grid(IG).
Step 2: In true action, create Refresh event and mapped with Grid which you want to refresh.
Step 3: In Model Dialog page property, paste the following code in attribute property in Model Dialog page :
Note: Chained Property changed to 'NO'. otherwise, the whole page will reload instead of refresh the Interactive Grid.
Here is a video tutorial:
I hope this article gives you the enough information of how to refresh the Interactive Grid(IG) when model dialog/popup is closed.
Let us consider, I have created one normal page and one model dialog already.
Step 1: create a dynamic action on "Dialog Closed" event in Interactive Grid(IG).
Step 2: In true action, create Refresh event and mapped with Grid which you want to refresh.
Step 3: In Model Dialog page property, paste the following code in attribute property in Model Dialog page :
close: function(event, ui) {apex.navigation.dialog.close(true,{dialogPageId:7});}
Note: Chained Property changed to 'NO'. otherwise, the whole page will reload instead of refresh the Interactive Grid.
Here is a video tutorial:
I hope this article gives you the enough information of how to refresh the Interactive Grid(IG) when model dialog/popup is closed.
Great tutorial! Thanks!
ReplyDeleteThis worked, thanks! It will not work in Chrome. Gives a Javascript error. Works in IE.
ReplyDeleteWould this work on a deeper level of modal dialog? I'm trying to close a modal dialog that leads to a previous modal dialog, but the Grid in that dialog won't get updated whenever the top level dialog is closed.
ReplyDeleteIT WORKS! This was really bugging me. Thank you!
ReplyDeleteThis is great, thank you. I've been looking for a way to refresh after close using X for ages.
ReplyDeletehow about if IR instated of IG ...as same logic didnt work for me IR...pleases advice
ReplyDeleteMuchas Gracias, Funciono con APEX 19.2 de forma natural y limpia. refrescar página al llamado de una modal
ReplyDeleteThank you so Much!!!!.. it worked so great on APEX 19.1. I was not even clod to find this solution.
ReplyDeletethank you so much!!
ReplyDelete