How could I achieve making a popup open when a boolean goes true then close when it goes false?
Gateway tag change script, then use system.perspective.getSessionInfo to get a list of all the active sessions, which you can then use to open the popup on b passing the session id to the open popup function.
You could do it in a tag’s on change event as well
There are actually several posts on this topic already, here are a few...
Based on this link Open popup from session event - Ignition - Inductive Automation Forum , I’ve developed a message handler with script named downtimepopup:
system.perspective.openPopup('myPopupId', 'Primary/Downtime', position = {'left':100,'top':100},params=payload)
Then, a value change tag event script:
if previousValue.value == False and initialChange == False :
system.perspective.sendMessage("downtimepopup")
But it doesn’t work, no error for tag diagnostics. Any suggestions would be ap…
what would that change script include? would I use an If statement followed by system.perpective.openPopup? I am pretty new to ignition
1 Like