# Stacking docked windows for navigation

**URL:** <https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [April 21, 2022, 3:51pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701 "2022-04-21T15:51:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 21, 2022, 3:51pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/1 "2022-04-21T15:51:47Z")

</div>

Not sure why this is causing me so much pain right now.

Essentially I want a docked window(for main navigation) North. Then when clicking a button, I would like to open a second docked window North, which sits directly below it. This is Navigation for that “sub area” of the project.

I have a two docked windows, both around 200px in height. The main has an index of 0. While the sub has an index of 1. When ‘this area’ is clicked. I want to open the ‘this area’ sub menu docked window + plus ‘this area’ main window. so they can go to main area 2, main area 3 etc…

This opens both windows:

```auto
window = system.nav.openWindow('Live Production Monitoring/LPM - Navigation')
window = system.nav.openWindow('Live Production Monitoring/LPM - Home')

```

As it stand right now, the navigation its taking up the whole page, so I can’t see the home page.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 21, 2022, 4:31pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/2 "2022-04-21T16:31:31Z")

</div>

You can’t open multiple docked windows on the same side in Vision, unfortunately.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [April 21, 2022, 4:47pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/3 "2022-04-21T16:47:58Z")

</div>

As @paul-griffith said you can’t dock multiple windows, but you can put multiple containers in the same window, and perhaps use some logic that determines which of those containers is shown, simulating having different “windows” in the same docked position.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 21, 2022, 6:08pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/4 "2022-04-21T18:08:33Z")

</div>

@paul-griffith very weird. When I hove over the 'Dock Index' I see:

 ![IMG_6480](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bf10f122bfff483d2a6cc0370c77580cb424d516.jpeg)  
And documentation here [https://docs.inductiveautomation.com/display/DOC80/Window+Types](https://docs.inductiveautomation.com/display/DOC80/Window+Types)  
says:

> The Dock Index is a property on the window that **determines the order of docked windows if multiple windows are docked to the same side**. The window with the lowest Dock Index will appear closest to the edge on that side, whereas the highest Dock Index will appear closest to the middle of the client.

Which I feel is super misleading. And it is under the Vision documentation section.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 21, 2022, 6:11pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/5 "2022-04-21T18:11:49Z")

</div>

@bkarabinchak.psi this an idea I thought about. But per my above post the other way ‘seemed’ doable. Looks like I’ll have to settle for a workaround with some visibility props.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [April 21, 2022, 6:13pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/6 "2022-04-21T18:13:20Z")

</div>

Yea interesting, I don’t recall seeing a dockIndex property before, definitely have not used it before. Though based on it’s documentation seems like you’ll just see more and more windows cascading towards the middle of the screen? Or maybe you just have to close the previous docked window before opening up a new window on that dock? Not sure.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 21, 2022, 6:18pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/7 "2022-04-21T18:18:54Z")

</div>

@bkarabinchak.psi I don’t know, I’m sure @paul-griffith can elaborate. The tool tip and docs make it sound possible. Which is why I thought I could. It kind of states it pretty clearly I feel. But something isn’t really lining up at the same time.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 21, 2022, 7:16pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/8 "2022-04-21T19:16:43Z")

</div>

I clearly haven’t done enough actual work in Vision for a while.

I’m absolutely wrong, and you can have multiple docked windows. Now I’m trying to figure out why I was under the impression you couldn’t… Possibly because plain Java Swing JScrollPanes can only have one docked component on each border.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 21, 2022, 7:25pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/9 "2022-04-21T19:25:26Z")

</div>

As it stands right now, it’ll be hard to debug your actual problem without a project export… if you can share it, that’d be convenient, but if you’re not easily able to due to IP or other concerns, you can contact support and they can remote in to take a look.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 21, 2022, 7:59pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/10 "2022-04-21T19:59:59Z")

</div>

@paul-griffith Nothing IP about it. Just a sales demo essentially. But as I was about to export it, I tried one more time.

I saw a download button on a window I don’t remember being there. I checked the designer, saw nothing. Clicked around a few times and not it working perfectly. I really don’t know what happened, I was trying forever. And now it just works…?

I’ll monitor it, and if the issue arises again I’ll post the project.

Thank you!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 21, 2022, 8:04pm UTC](https://forum.inductiveautomation.com/t/stacking-docked-windows-for-navigation/58701/11 "2022-04-21T20:04:56Z")

</div>

It’s a common joke that as soon as you try to show someone a problem, it’ll immediately go away - so I guess that even applies over distance 🙂
