# Navigation event

**URL:** <https://forum.inductiveautomation.com/t/navigation-event/85303>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [February 6, 2024, 3:48pm UTC](https://forum.inductiveautomation.com/t/navigation-event/85303 "2024-02-06T15:48:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihaly\_Sztojka](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mihaly\_Sztojka](https://forum.inductiveautomation.com/u/Mihaly_Sztojka)\
**Post date:** [February 6, 2024, 3:48pm UTC](https://forum.inductiveautomation.com/t/navigation-event/85303/1 "2024-02-06T15:48:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 6, 2024, 3:55pm UTC](https://forum.inductiveautomation.com/t/navigation-event/85303/2 "2024-02-06T15:55:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 6, 2024, 3:56pm UTC](https://forum.inductiveautomation.com/t/navigation-event/85303/3 "2024-02-06T15:56:49Z")

</div>

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):

```auto
if(
  {[default]MyTag},
  "pathToNewView",
  "pathToDefaultView
 )

```

---

<div class="post-metadata">

**Author:** ![Mihaly\_Sztojka](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mihaly\_Sztojka](https://forum.inductiveautomation.com/u/Mihaly_Sztojka)\
**Post date:** [February 6, 2024, 8:53pm UTC](https://forum.inductiveautomation.com/t/navigation-event/85303/4 "2024-02-06T20:53:54Z")

</div>

Thank you very much. Solved the issue.
