[IGN-2121]Perspective Notification


Is there a way to send notification on the perspective sessions (Like the one below)with a customised text title … ?



Do you have constraints/requirements on this ? Should it be a popup ? a toast ?

I’m thinking that the simplest way to do this would be having a message handler attached to a shared dock. Then all you have to do is send a message, with the notification details in the payload, catch that in the dock’s handler, and use the details to display whatever it is you want to display.

If you don’t already have a shared dock, you can make one that displays on demand, and use system.perspective.openDock() in the message handler. You can also time a system.perspective.closeDock call to close it automatically after a while.

While it’s (I think) the simplest way, it’s also not the prettiest, depending on several things: If you already have docks, it may disrupt your UI, it takes the whole height/width (depending on where you put the dock) of the screen (even if left transparent, you can see the edge of the dock), etc.
There might be ways of mitigating those issues, but I don’t have the time to work it out right now.

If you want to make it prettier, you might want to use a popup. But this will require you to have a component with the message handler in ALL your perspective pages. Or at least all the pages were you want this notification to be received.
The good news is, it can be an invisible component, that you just add everywhere.
How you handle the display of the notification is then up to you.

Have a look at @ryanmclaughlin’s very nicely done Perspective Utility Scripts on the Ignition Exchange. He has popups and status bar solutions with CSS fades and themes for “success” and “fail”, etc.

You could use these in your applications and, as already suggested by Pascal, trigger these with a message handler.

Workarounds aside, this is also something we’re considering exposing first party via a scripting function.


It would be great to trigger the built in notification scheme in that way, not only out of ease of implementation, but to increase consistency in the look and feel from a user standpoint.

1 Like


Thanks everyone for the help, i will look at every proposed solution.

@PGriffith : To you have an idea when this could be implemented ?


No, no timeline to share. It’s still in the “incubating” stage, so it’s not about to get picked up to be worked on, even. If you need this functionality in the short term, I’d proceed with a workaround.

1 Like

Out of curiosity with a workaround, any comments you can make about relevant classes or message structures needed to hack the built in notifications in a module or scripting?

I don’t think you’d have access to what you need, it’s gated behind the SafetyWrapper. From a Perspective component you could theoretically access the NotificationStore, but it’s not currently designed to be general-purpose, so it would look like some other type of notification; I don’t think you can even provide arbitrary text right now.

1 Like

You could mock-up your own timed Popup using theming. The hard part would actually be identifying which page(s) should receive the notification.

1 Like

Darn safety wrappers! Y’all need to enable to reactions plugin so we can dislike anything that mentions a safety wrapper :wink:

(I understand the purpose of them, I just like to complain about them because they make life hard sometimes)


You can easily change the text on project properties like this: