# Hide windows on the tree view navigation

**URL:** <https://forum.inductiveautomation.com/t/hide-windows-on-the-tree-view-navigation/19491>\
**Category:** Ignition\
**Created:** [August 31, 2018, 3:39pm UTC](https://forum.inductiveautomation.com/t/hide-windows-on-the-tree-view-navigation/19491 "2018-08-31T15:39:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Madapathi](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mahesh\_Madapathi](https://forum.inductiveautomation.com/u/Mahesh_Madapathi)\
**Post date:** [August 31, 2018, 3:39pm UTC](https://forum.inductiveautomation.com/t/hide-windows-on-the-tree-view-navigation/19491/1 "2018-08-31T15:39:47Z")

</div>

I do not want to show all the windows on the vision client that i created on my designer. I am using a tree view navigation strategy. In the following snip, I don't want to show the configurator window (or the Configuration folder) on my vision client. can somebody help me how to do that.

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3bdeaae30feb9e4e4ae39d4cee0f2e4682054aa7.png)

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/cb1941e080265d58a7cc51d2661a0ef0aea742fd.png)

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [August 31, 2018, 6:38pm UTC](https://forum.inductiveautomation.com/t/hide-windows-on-the-tree-view-navigation/19491/2 "2018-08-31T18:38:04Z")

</div>

The treeview works off of a dataset. You can recreate the dataset in a database table then have another table to assign users which groups of the treeview they should be able to see.

---

<div class="post-metadata">

**Author:** ![Mahesh\_Madapathi](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mahesh\_Madapathi](https://forum.inductiveautomation.com/u/Mahesh_Madapathi)\
**Post date:** [September 4, 2018, 6:34pm UTC](https://forum.inductiveautomation.com/t/hide-windows-on-the-tree-view-navigation/19491/3 "2018-09-04T18:34:31Z")

</div>

So to get the tree view windows, The following code is being used on the window. event handler "vision window opened'.

currentWindow = system.tag.read("[System]Client/User/CurrentWindow").value   
windows = system.gui.getWindowNames()  
system.gui.getParentWindow(event).getComponentForPath('Root Container.Tree View').updateTreeView(windows, currentWindow).

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [September 4, 2018, 6:37pm UTC](https://forum.inductiveautomation.com/t/hide-windows-on-the-tree-view-navigation/19491/4 "2018-09-04T18:37:24Z")

</div>

Use this:

```auto
windows = [x for x in system.gui.getWindowNames() if 'Configuration' in x]

```

You’re getting a list of window paths, this filters out ones that have ‘configuration’ in the path.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [September 5, 2018, 8:36pm UTC](https://forum.inductiveautomation.com/t/hide-windows-on-the-tree-view-navigation/19491/5 "2018-09-05T20:36:43Z")

</div>

I think you mean.

```auto
windows = [x for x in system.gui.getWindowNames() if 'Configuration' not in x]

```

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [September 5, 2018, 8:37pm UTC](https://forum.inductiveautomation.com/t/hide-windows-on-the-tree-view-navigation/19491/6 "2018-09-05T20:37:37Z")

</div>

Hah right, important distinction there. Thanks!
