Navigation event

Hi Everyone!

I have run into a problem where after a certain time the code turns on a variable( bool(1)) and a Navigation event needs to be executed, but as far as I know, you can only put events on components.
If anyone has any ideas I would appreciate it.

What/where is this variable? An OPC tag from a device, perhaps?

If so, bind the tag to a custom property, and use a change event on that property.

Another way to do this would be to use the Embedded View component.

  • Drop the component onto your view.
  • Create an expression binding on props.path. (You didn't say where the bool is - a tag or a component or view property - so you need to figure out what the source is.)
  • On the Edit Binding dialog, add the following expression (modifying the tag / prop and viewnames to suit):
if(
  {[default]MyTag},
  "pathToNewView",
  "pathToDefaultView
 )

Thank you very much. Solved the issue.