# \[feature request\] Perspective - Menu Tree - sync when using system.perspective.navigate

**URL:** <https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548>\
**Category:** Ignition Early Access\
**Tags:** perspective, ignition81\
**Created:** [April 13, 2021, 7:18pm UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548 "2021-04-13T19:18:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 13, 2021, 7:18pm UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/1 "2021-04-13T19:18:57Z")

</div>

**Perspective Menu Tree** is perfect for navigation strategy, but sometime we use too **system.perspective.navigate** to select a view and in this case the tree is not updated according the page opened.  
It will be usefull to be able to have a prop change the selection in the menu tree (without double triggering the navigate)

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [April 13, 2021, 8:00pm UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/2 "2021-04-13T20:00:01Z")

</div>

Why not create your own custom wrapper method for system.perspective.navigate that sends a message to a handler on the Menu Tree component telling it how to update? I like to create scripts like this under similarly named custom script libraries. For example, the following might be found within a script library named custom.perspective so that you would simply call custom.perspective.navigate instead of system.perspective.navigate where needed:

```auto
def navigate(page, pageId, newSelectionValue):
	system.perspective.navigate(page, pageId)
	messageType = 'UpdateMenuTree'
	payload = {'selection'	: newSelectionValue}
	system.perspective.sendMessage(messageType, payload)

```

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 13, 2021, 8:13pm UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/3 "2021-04-13T20:13:49Z")

</div>

There is no method exposed to control the selection on the menu tree

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [April 13, 2021, 8:33pm UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/4 "2021-04-13T20:33:15Z")

</div>

Oops, I was thinking of the Perspective Tree component:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/c/cc24905eaac696193ab6c0fac625fbebf3c4fe26.png)

Ignore my previous post. 🙃

---

<div class="post-metadata">

**Author:** ![jacob.mann](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jacob.mann/32/35821_2.png) [@jacob.mann](https://forum.inductiveautomation.com/u/jacob.mann)\
**Post date:** [September 27, 2022, 11:25pm UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/5 "2022-09-27T23:25:31Z")

</div>

Hi @mazeyrat, has this ever been looked into by the dev team? its a constant source of frustration when combining alternative navigation links in a session view? 🤪

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [September 28, 2022, 6:56am UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/6 "2022-09-28T06:56:14Z")

</div>

Perhaps if more users vote for this feature:

> **[Perspective Menu Tree - Select an item with script | Voters | Inductive...](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/perspective-menu-tree-select-an-item-with-script)**

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [September 28, 2022, 8:01am UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/7 "2022-09-28T08:01:27Z")

</div>

done

---

<div class="post-metadata">

**Author:** ![Simen](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Simen](https://forum.inductiveautomation.com/u/Simen)\
**Post date:** [January 2, 2023, 3:14pm UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/8 "2023-01-02T15:14:41Z")

</div>

Wish this was possible, its really confusing for users when the menu isn't updated.  
I added my vote 🙂

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 2, 2023, 3:47pm UTC](https://forum.inductiveautomation.com/t/feature-request-perspective-menu-tree-sync-when-using-system-perspective-navigate/45548/9 "2023-01-02T15:47:48Z")

</div>

Yes I found this very annoying !
