How can I refresh the parent page after completing an action from the mini page?
Hello Community,
I'm working with a mini page in Creatio, and I need to refresh or update the parent (background) page after an action (like closing the mini page) is completed.
As shown in the image, after the Start Sync Process is completed, I'm closing the mini page using JavaScript. However, I also want the main page to refresh automatically.
I’m looking for the best approach or method to trigger a refresh of the parent page programmatically once the mini page action is completed.
Regards,
Ajay
Like
What action does the button trigger? Starts a process or calls a configuration service? You could send messges back from there to the UI and listen for those on the parent page. See https://customerfx.com/article/receiving-server-side-messages-in-a-creatio-freedom-ui-page/
If it's just all client-side things the button does, you could possibly make use of Javascript's broadcast channel API to send a message to the parent page code. See https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API
Ryan