# Multiple Selections with Perspective Tree

**URL:** <https://forum.inductiveautomation.com/t/multiple-selections-with-perspective-tree/23690>\
**Category:** Ignition Early Access\
**Created:** [March 28, 2019, 5:53pm UTC](https://forum.inductiveautomation.com/t/multiple-selections-with-perspective-tree/23690 "2019-03-28T17:53:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [March 28, 2019, 5:53pm UTC](https://forum.inductiveautomation.com/t/multiple-selections-with-perspective-tree/23690/1 "2019-03-28T17:53:59Z")

</div>

I’m trying to set up a Tree control in Perspective to act as a tag browser to select which tags show up on an XYChart and I want to be able to organize the tags by regions (folders).

I’d like to be able to select multiple tags from the Tree but it appears to only select one at a time. I’m not sure if I’m missing a property somewhere or if this control only allows single selection. It seems like you should be able to select multiples because the control has “selection” and “selectionData” properties which I presume are arrays corresponding with the items on the tree.

My general idea was to create a series for each tag I have on the tree control and send tag data for the selected series through a message to the chart when a “refresh” button is pressed.

I’m also interested in any suggestions if my approach is wrong. I am aware of the ability to use toggle buttons and a refresh button but the user of this system doesn’t prefer that implementation.

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [April 18, 2019, 5:39pm UTC](https://forum.inductiveautomation.com/t/multiple-selections-with-perspective-tree/23690/2 "2019-04-18T17:39:39Z")

</div>

Hey,

Terribly sorry for the delay. You’ve probably already figured it out by now, but just in case. You should be able to select multiple items by holding the ‘command’ on macOS, or ‘control’ on Windows, and clicking the individual items. Doing so should populate the `selection` and `selectionData` arrays.

I don’t see anything wrong with your approach. There may be some performance considerations, but that’s pretty much always a consideration ;).

-Yousuf

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [April 18, 2019, 5:42pm UTC](https://forum.inductiveautomation.com/t/multiple-selections-with-perspective-tree/23690/3 "2019-04-18T17:42:31Z")

</div>

Thanks for the reply. I ended up developing an implementation that uses about 100 toggle buttons but I think I’m going to revisit the tree view.

I prefer the tree view from an organization standpoint. Also, now that I understand how to use a json editor with the designer I can knock out this kind of work a lot faster.
