# Tree View 7.7.2 rc1, selected folders

**URL:** <https://forum.inductiveautomation.com/t/tree-view-7-7-2-rc1-selected-folders/9242>\
**Category:** Ignition\
**Created:** [October 28, 2014, 12:16pm UTC](https://forum.inductiveautomation.com/t/tree-view-7-7-2-rc1-selected-folders/9242 "2014-10-28T12:16:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serhii](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Serhii](https://forum.inductiveautomation.com/u/Serhii)\
**Post date:** [October 28, 2014, 12:16pm UTC](https://forum.inductiveautomation.com/t/tree-view-7-7-2-rc1-selected-folders/9242/1 "2014-10-28T12:16:02Z")

</div>

Hello!  
In Tree View in version of Ignition 7.6.6 if i select the folder - in selectedItem i see “-1”.  
[screenshot.su/show.php?img=f76d8 … 832b83.jpg](http://screenshot.su/show.php?img=f76d8316003385771e2b7cc8e3832b83.jpg)

In Tree View in version of Ignition 7.7.2 rc1 if i select the folder - in selectedItem i see the number of first item in this folder.  
[screenshot.su/show.php?img=a141c … 5f5572.jpg](http://screenshot.su/show.php?img=a141cb738f1c9c4e776e4cbec85f5572.jpg)  
[screenshot.su/show.php?img=8a567 … 714237.jpg](http://screenshot.su/show.php?img=8a567ffa7e0fe00a0e730560ed714237.jpg)

In 7.6.6 the “-1” was helpfull to screen out the folders and making script only when “no\_folder” item is selected.

How i can realize it in 7.7.2 ?

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [October 31, 2014, 5:11pm UTC](https://forum.inductiveautomation.com/t/tree-view-7-7-2-rc1-selected-folders/9242/2 "2014-10-31T17:11:27Z")

</div>

It looks like right now the tree view component is reporting indexes incorrectly.

For what its worth, -1 was never the intended “folder” value. Most people don’t include folders in their datasets, so the folders are implicitly created and don’t _have_ an index.

---

<div class="post-metadata">

**Author:** ![Serhii](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Serhii](https://forum.inductiveautomation.com/u/Serhii)\
**Post date:** [November 1, 2014, 8:29pm UTC](https://forum.inductiveautomation.com/t/tree-view-7-7-2-rc1-selected-folders/9242/3 "2014-11-01T20:29:52Z")

</div>

[quote=“Greg.Simpson”]It looks like right now the tree view component is reporting indexes incorrectly.

For what its worth, -1 was never the intended “folder” value. Most people don’t include folders in their datasets, so the folders are implicitly created and don’t _have_ an index.[/quote]

Thanks for answer but i still not understend how i can filter folder and not\_folder ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")
