Create a Popup to display on all active Perspective sessions

I am trying to figure out a way to push a button on one perspective session to open a view that I created with a text box and a close button to be able to send out a message to all sessions at the same time to be able to quickly communicate with the machine operators and then the close button will close the same view on all active sessions. I haven't been able to come up with a way for this view to pop up on any active sessions when I push the button. Has anyone ever done this? Is this possible? Any tips/tricks/tutorials would be greatly appreciated.

From my reading

  • system.perspective.sendMessage | Ignition User Manual sends messages within the current session. So this can only be received by the same client that sends the message. i.e., it's a message between components within the client's session.
  • system.util.sendMessage | Ignition User Manual requires the name of the project to be targeted. This allows a message to be sent to all the running clients for the named project.
  • Neither allows the messages to be picked up by clients running other projects.

Instead, consider having your button set and clear a tag for this announcement. Every project would have to be modified to monitor that tag (via a binding on, for example, a session custom property) and open a popup via the custom property's onChange event.

Someone may have a better plan!

2 Likes

Could you skip the message function entirely and create a property change script as part of a docked view that executes at the client level and bind it to a tag?

That was my intention. I'll edit to make it a bit clearer. Thanks!