In this article we are going to see how to refresh a Interactive grid dynamically using JavaScript. We can also have an a separate option to refresh region in dynamic action instead of JavaScript. But In some cases we may require JavaScript to refresh an region. Now let see how to do it.
- First thing is you need to set static id to your region. For example, I have gave EMP as a static id for an Interactive grid.
- And then you need to create dynamic action and place the following code in true action of JavaScript action type.
- apex.region("regionStaticID").refresh();
- For example, I have created an Dynamic action on Button click and executing the following code in Javascript to refresh a IG region.
- apex.region("EMP").refresh();
In this article I have given basic idea of how to refresh region and hope you got enough information from this article. If you have any clarification and suggestion then leave a message in comment section.