How to make a view pop up on another view

So, I have project that is already working, and I got a request to add a pop-up message that notifies that parts are low so that it will display a message to the operator.

So, I have created another view in perspective with tags associated from the fault condition of the plc that lets the operator know it's time to fill up. I took those tags and turned them into check boxes in perspective so that when the condition comes true the check box becomes checked.

What I don't know how to do is when a condition does become true have this view take priority over the existing one, they have now or have this one pop up as a message until all the conditions become false.

The simplest method is add the tag bindings and change event scripts to a shared docked view, as the scripts that run in a dock can open popups or perform navigation.

(If you use navigation, the prior view's content will be lost if the user was editing anything, so a popup is probably the right path.)

just to confirm I am hearing you right! The existing view that they use I need to change it to a shared docked view and then add the view that I made for the parts condition. how do I change an existing view to a shared dock view?

In most applications there are several views that the user navigates through. That causes a bit of a problem with a popup as it would require a trigger to be added to every view.

Phil is suggesting that you have an "always present" view - this could be the application banner or sidebar view - and use this to open the popup.

See Pages in Perspective | Ignition User Manual for the documentation on this. (It's easy.)

1 Like

No. Add a new view, configured to be a sidebar or top/bottom bar in the shared page configuration (so always present, no matter the main view). The code would go in the new view, presumably on its view custom properties. The popup would not disturb any current view.

And if you have no other use for the docked view you can reduce it to a couple of pixels high or wide so that it doesn't waste screen space.

1 Like