How to refresh a Record View page from a different Record View page

I have a button on my Practitioner View app in the Header line that refreshes the page.
The JS command I used with the button to refresh the page is “window.location.reload()”

Do you know of a way to refresh a different page then the one that is active?
For example, if I am on the Payer app page, can I have a button with JS code that will refresh the Practitioner View app page?

Here's an explanation of why I want to do this.
I have an action button on the Practitioner View app to add a payer record for the practitioner. When you click the button, it opens a new browser tab where I can view, update, and save the newly created payer record.
Back on the Practitioner View app, I have a related records section to show related payer records. When I use the action button to create a new payer record, the related records section does not update automatically when I’m done with adding the new payer record.
To help with this, I created a button in the header of the Practitioner View app to Refresh the page so the new payer record appears in the related records section after I close the Payer app. It would be nice if I could add code on Payer app to refresh the page for the Practitioner View before I close the Payer page.
Thanks

Hello @DebraMalkus
If I understood your question correctly, due to the Same-Origin Policy enforced by browsers for security, JavaScript alone cannot directly refresh another page from a different tab or window. This policy ensures that JavaScript running on one page cannot interact with or control the content of another page unless they share the same origin.

Thanks Chris. I sort of thought that might be the answer since I couldn’t find anything on Google but thought I’d ask just to be sure.

You can close this.

Have a great evening!

Deb

2 Likes