Refreshing datasource when data changed

I have 2 independent windows, let’s say window1 and window2 which work with the same models let’s say Product. I open window1 from the menu and i load product1. I open window2 and edit product1 and the i switch to window1 tab. Here i want to have the updated product1 but i don’t have any event that is called when window1 is opened from switching tabs. Any suggestions?

If you want to send events between opened screens in a user session, use functionality described here: Event handling in UI screens.