# Tag Browse Tree On Click

**URL:** <https://forum.inductiveautomation.com/t/tag-browse-tree-on-click/20143>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [October 15, 2018, 11:09am UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-on-click/20143 "2018-10-15T11:09:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [October 15, 2018, 11:09am UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-on-click/20143/1 "2018-10-15T11:09:19Z")

</div>

I am trying to use a tag tree on click to display the selected Path. I have the tree set to single selection only.

I am running the following script to test the output path. Nothing happens when the script runs.

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

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 15, 2018, 12:41pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-on-click/20143/2 "2018-10-15T12:41:59Z")

</div>

I would expect there to be an error report. Look at your diagnostics console. ~~“selectedPaths” is a list, not a dataset, so there would be no getValueAt() method.~~

Edit: I stand corrected.

---

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [October 15, 2018, 1:05pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-on-click/20143/3 "2018-10-15T13:05:26Z")

</div>

Even when I try to output a message box or change a tag value, nothing happens.  
There are no errrors in the logs.  
Is there a known issue with the tag tree browser onClick?

---

<div class="post-metadata">

**Author:** ![mcgheeiv](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mcgheeiv](https://forum.inductiveautomation.com/u/mcgheeiv)\
**Post date:** [October 15, 2018, 2:26pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-on-click/20143/4 "2018-10-15T14:26:32Z")

</div>

The on click event runs when you click somewhere on the tag browser, not necessarily on an item on the tree.

I added the following script to a tag browser, selected a tag, clicked on the tag browser, and the message box showed the tag I clicked.

`
system.gui.messageBox(event.source.getComponent('Tag Browse Tree').selectedPaths.getValueAt(0,0),'test')`

---

<div class="post-metadata">

**Author:** ![mcgheeiv](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mcgheeiv](https://forum.inductiveautomation.com/u/mcgheeiv)\
**Post date:** [October 15, 2018, 2:28pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-on-click/20143/5 "2018-10-15T14:28:11Z")

</div>

Documentation says that selectedPaths is a dataset.
