# Navigation using a simple MenuTree Perspective

**URL:** <https://forum.inductiveautomation.com/t/navigation-using-a-simple-menutree-perspective/37498>\
**Category:** Ignition\
**Created:** [August 7, 2020, 12:25pm UTC](https://forum.inductiveautomation.com/t/navigation-using-a-simple-menutree-perspective/37498 "2020-08-07T12:25:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigo.mocca](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rodrigo.mocca/32/14947_2.png) [@rodrigo.mocca](https://forum.inductiveautomation.com/u/rodrigo.mocca)\
**Post date:** [August 7, 2020, 12:25pm UTC](https://forum.inductiveautomation.com/t/navigation-using-a-simple-menutree-perspective/37498/1 "2020-08-07T12:25:47Z")

</div>

Hi,  
I’m new on Ignition and I have issues trying to set a MenuTree on a perspective application.  
I have the following:  
MainView  
View1  
View2  
View3  
MenuTree

I want to configure the Menu to show always and I want to navigate to Views from there.  
If I configure an event to navigate to a view doesn’t allow me to specify which button navigate to which view.  
If I configure the target property for every menu tree item, it only allows me to configure a Page, not a View, so when it navigates, the menu tree disappears.

I’ve tried with scripting too, but without no luck.  
My idea was if I can get the selected item I can swap to a View, but I can’t get working the system.nav.swapTo method, it simply does nothing.

In another hand, the console output only works for Vision? I’ve tried to add a button, add an event script with print(‘testing’), but the console doesn’t show anything.

How should I do to set the navigation, swapping the main view?

Thanks for your help.-

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [August 7, 2020, 1:06pm UTC](https://forum.inductiveautomation.com/t/navigation-using-a-simple-menutree-perspective/37498/2 "2020-08-07T13:06:32Z")

</div>

The menu should be in a dock.

This will guide you how:  
[https://docs.inductiveautomation.com/display/DOC80/Navigation+Strategies+in+Perspective](https://docs.inductiveautomation.com/display/DOC80/Navigation+Strategies+in+Perspective)

---

<div class="post-metadata">

**Author:** ![rodrigo.mocca](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rodrigo.mocca/32/14947_2.png) [@rodrigo.mocca](https://forum.inductiveautomation.com/u/rodrigo.mocca)\
**Post date:** [August 10, 2020, 6:13pm UTC](https://forum.inductiveautomation.com/t/navigation-using-a-simple-menutree-perspective/37498/3 "2020-08-10T18:13:12Z")

</div>

That was my problem.

Thanks for your help-
