I am trying to use a button to first write to multiple tags (currently just one in the script for testing) then navigate away from the screen using onActionPerformed. If I disable the navigation, the script works and the tags are written too. If I enable the navigation, the tags aren't written but the navigation does happen. I have the script as number 1 and the navigation as number 2. Is there something I'm missing?
The Organize Actions are carried out asynchronously.
- Delete the Navigation action.
- Use system.perspective.navigate | Ignition User Manual in your script.
Now you are back in control.
1 Like
Actions are ordered, but not blocking. And script actions require a round trip to the gateway, so they're always slower than actions that can run in the browser.
Put both/all "things to do" in one script action if you need any script action.
3 Likes
Ahhh thank you!