Is there a way to force a browser refresh from a procedures?
My use case is to make it more apparent to application users that they are in a “training” mode. Our thought, which we had done in WinUI, was to change the background color of the webui. So when users load a training data set, I have a procedure that programmatically creates a CSS stylesheet that sets the app background to light-pink. When they exit training mode, the procedure re-writes that file to be back to our default app background color.
If a user manually refreshes the browser, the new CSS file gets used and the color changes. Yet the user has to manually refresh themselves. I haven’t found a way to refresh it via code.
I tried “webui::RefreshAllWidgets” to see if that might force it, but I just get an AIMMS warning “awf.data.aimms.session:WinUI pages are not available when project is setup for WebUI.” when I call it.