Hi,
Is there any way we can react to when someone refreshes the page in their browser? I would like too refresh the datasources of screens when that happens.
Hi,
Is there any way we can react to when someone refreshes the page in their browser? I would like too refresh the datasources of screens when that happens.
Hello @bartekspitza
You can subscribe to UIRefreshEvent
in screen controller to react to each web page refresh.
@UiController("respMainScreen")
@UiDescriptor("resp-main-screen.xml")
public class RespMainScreen extends MainScreen {
@EventListener
public void onUIRefresh(UIRefreshEvent event) {
//do something
}
}
Regards,
Gleb
Wow, thats awesome to hear. Thank you!