system.gui.messageBox wont compile?

Attempts to evaluate system.gui.messageBox fail at .gui

What I am seeing is that .gui is undefined or doesn’t exist within the context of my Ignition installation?

Does anyone know why this is happening?

Sounds a lot like you’re trying to run this code from gateway scope.

Since you tagged this Perspective, yes, that is gateway scope.

1 Like

You probably want something like system.perspective.openPopup if this is Perspective.

1 Like

Yes, I am trying to run it through a Button’s component event in Perspective.

I think I get it now (it’s gateway scoped) and I should try system.perspective.openPopup in perspective. I’ll look at this closer.

Thank you Kevin! Most helpful!

Have a look on the Exchange at @ray 's alert dialogues.

6 Likes