Navigation by scripting using indirection

My first post on this forum and am a complete Ignition novice looking for some help.

I have a Template with a button to open a Vision window. My Template has a custom parameter that I want to use to build the path to the folder that contains the window. I can’t get the following script to work and can’t figure out what I’m doing wrong.

path = myCustomParameter + “/myWindow”
system.nav.openWindow(path)

Use the property selector in the top right of wherever you're writing this script to select the custom parameter; you'll get a path something like event.source.parent.myCustomParameter (not necessarily exactly that; the whole point is to use the helper).

It's a little icon that looks kinda like this .

1 Like
  1. Make a custom string property and an expression binding to build the path (probably on the button itself).
  2. Use this property in your button script. Start the script with the pre-generated navigation functionality and then change to the script tab and you'll see the script that the navigation function generates. Edit this script to use your custom path string instead of whatever was in there (using the selector to do so as Paul mentioned)
1 Like