Template Script Reference Stuck at Original Setting

Hello,

I have a template with a script to launch a popup Window. Originally it was set to open a popup window named Analog Input. However, it has been changed (as can be seen in screenshot) to open a popup window named MS_AIn. No matter how many times I change this setting, restart the designer or Ignition gateway, etc, I can't get this setting to change. I made a new template to test launching popups to make sure I wasn't missing something obvious and have no issues changing which popup the new template launches.

Thanks,
Jeremiah

Go to the "Script Editor" tab and change it manually.

Script editor shows it pointing to the correct popup window but it still tries to open the original value that was entered.

param1 = event.source.AnalogInst

window = system.nav.openWindow('Popups/MS_AIn', {'AnalogInst' : param1})
system.nav.centerWindow(window)

This sort of thing usually means the component firing the event is not the one you think. Look at the template instance and see if it has this event defined. Make sure that instance has a name different from the template itself, so you can see a difference in the first tab of the error popup. Also, add some blank lines in the script so the .openWindow() call isn't on line #9, so you can see if the error follows the new line number.

1 Like

I kept looking at the script on the window but it was the script of the object in the window that was launching the popup. Thank you!

2 Likes