I am working on my very 1st Ignition project! I have a popup window with buttons to link to the various full screen displays. I am trying to create a Template with two parameters: WindowToShow and ButtonLabel (both Strings). I can not for the life of me get a simple script of system.nav.SwapTo() to work at all. I even tried changing the script so that it just closed the popup window. That didn’t work. I have figured out is something to do with “focus” I believe? I have a button on the actual popup window that hides itself, and it works fine. I must be missing something by trying to create a template that doesn’t know how to reach out to the rest of Ignition to tell it what to do.
In essence, I am trying to use the Mouse/Pressed action. I want it to swap the main window with the one passed into the template as WindowToShow, and then hide itself (the menu popup).
Any help will be greatly appreciated! After 20 years of Wonderware I see LOTS of potential for Ignition, so I want to learn to do it right!