Hi all,
Related to this post, how can we get opened window from Tag Event Script?
I have a tag event script:
w = system.gui.getWindow('MyWindow')
which return error
Hi all,
Related to this post, how can we get opened window from Tag Event Script?
I have a tag event script:
w = system.gui.getWindow('MyWindow')
which return error
Tag event scripts run in the gateway, not the client. The gateway doesn’t have the gui scripts because it is a service with no gui.
You can use a ‘Tag Change’ script instead, under ‘Client Event Scripts’ in the designer. Yes, it’s odd that there are two different places to run events on tag changes, but where the script runs matters.
Hi pturmel,
Thanks! That explains the phenomenon. Previously, I always thought that the Jython script in Ignition has the same base libraries every where it runs… Now, I got to be more careful, I guess.