Navigation by dropdown menu issue

Hello Everyone,
I have several zones/windows. Instead of relying on buttons for each window, I am using the dropdown menu option. It works perfectly fine when it comes to navigation. The problem is that when I switch from one window (Say Zone 1) and I want to go to "Zone 2", the dropdown menu doesn't show that Zone 2 is selected at the Zone 2 window. It shows whatever the previously selected before. Same goes for switching back to "Zone 1".At Zone 1 window dropdown menu shows that I selected the Zone 2. I hope it makes sense to you guys.

Since you're using the word window, I'm going to assume this is Vision. For this requirement, I would be inclined to move the navigation dropdown to a single docked window instead of redundantly placing the dropdown in each window. Beyond that, I imagine the simplest way to get multiple dropdowns to stay in sync is to bind them all bidirectionally to the same client tag.

2 Likes

I agree with @justinedwards.jle. Another approach could be to write back the screen position/index on window event visionWindow>visionWindowOpened to the component property .selectedValue.
However, I would not recommend this method as a preferred solution.

1 Like

Ah I forgot about the docked window option. I am stupid. Anyways Thanks @justinedwards.jle and @Ujwal_Wankhede for your support.

2 Likes