How to access any perspective view from gateway event script or from project library script?

I am trying to run code on daily basis from gateway scheduled event script.
I want access some components from a view.
How can I access it like in vision we can use system.gui.getWindow().

You cannot in Vision either--.getWindow() does not work in the gateway.

Which view? Are you sure it will be open? And only one open in one browser?

In other words, this is a bogus design pattern. If the UI absolutely needs to be present for this operation, then using a polling binding in your UI to generate repeating events that can then run code that accesses components.

Otherwise, ensure your view components store any relevant information in memory tags so the gateway event can access those.

4 Likes