Perspective global message popup

When using Perspective, if a user clicks on a component they don’t have the correct roles to access, Ignition displays a built-in popup message stating “Action Denied” (see screenshot).

I’d like to know if there’s a way to trigger this same style of popup anywhere in the system not just when role permissions block an action.

I would really like to use the built in feature because it stays on screen no matter where you navigate.

My goal:
Create a global message system that displays this same popup format across all Perspective sessions. (The messages would be warnings/errors/alerts ex: Fire alarm/Flood Warning/Evacuation)

The popup should appear for all sessions (or only users specific roles), regardless of where they are in the application.

The message should remain visible until either the user closes it or an admin clicks a button that closes the popup across all active sessions.

Is this possible, and if so, what would be the recommended approach?

You could probably do it with gateway/session messaging, but I think the simplest would probably be to use a tag that stores the message. Tie a session property to it, and when it changes from empty to a message, display the popup, and then close it automatically when the message disappears.

I don’t think the internal toast notification is exposed, but this module lets you make your own:

2 Likes

Yup, you can accomplish this with Periscope’s toast feature by:

  1. Targeting specific sessions when you create the toasts.
  2. Using an embedded view with custom close logic.
1 Like