# Row Selector - Selected Item

**URL:** <https://forum.inductiveautomation.com/t/row-selector-selected-item/3919>\
**Category:** Ignition\
**Created:** [January 26, 2012, 9:01pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919 "2012-01-26T21:01:44Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malcolm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/malcolm/32/5970_2.png) [@Malcolm](https://forum.inductiveautomation.com/u/Malcolm)\
**Post date:** [January 26, 2012, 9:01pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/1 "2012-01-26T21:01:44Z")

</div>

Is it possible to get a text string showing the path to (and including) the selected item in the Row Selector

I am generating a report from the row selector and would like to set the title to show the tree path used in the row selector.

---

<div class="post-metadata">

**Author:** ![Malcolm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/malcolm/32/5970_2.png) [@Malcolm](https://forum.inductiveautomation.com/u/Malcolm)\
**Post date:** [February 21, 2012, 11:02am UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/2 "2012-02-21T11:02:38Z")

</div>

Hi,

Just some further details on thi ssee if its possible in the attached image of a tree structure with the selection show can i get a string with the following or similar value:

‘NP Tests (81)\Unknown (81)\Bead (27)\UCR20/5-NP (6)’

Either with or without the number of results at each level.

This string would be used on top of a generic report to show what data was selected to generate it.

Regards

Malcolm Bird  
Swift Automation  
UK

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/60f8246082bd904ca5fecdd7141d05b9294b5540.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:** [February 21, 2012, 2:04pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/3 "2012-02-21T14:04:35Z")

</div>

If I remember right, you should just have to put the selected path into a dataset. then use that dataset in the report.

---

<div class="post-metadata">

**Author:** ![Malcolm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/malcolm/32/5970_2.png) [@Malcolm](https://forum.inductiveautomation.com/u/Malcolm)\
**Post date:** [February 21, 2012, 2:10pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/4 "2012-02-21T14:10:46Z")

</div>

The Row Selector does not appear to have a property ‘selectedPath’ or similar

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [February 21, 2012, 7:56pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/5 "2012-02-21T19:56:56Z")

</div>

Hi Malcom,

There is a selectedRow property. That tells you the row in the dataset. There is an item path column in the dataset. That is your path you are looking for.

---

<div class="post-metadata">

**Author:** ![Malcolm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/malcolm/32/5970_2.png) [@Malcolm](https://forum.inductiveautomation.com/u/Malcolm)\
**Post date:** [February 22, 2012, 2:09pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/6 "2012-02-22T14:09:35Z")

</div>

Tried using selectedRow as a property but is not reconised for the Row Selector component

Any pointer to where i should look

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [February 22, 2012, 4:21pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/7 "2012-02-22T16:21:08Z")

</div>

Here is a sample project that has a tree control and two labels. When you select an item in the tree, one label shows the complete path, the other one shows the selected item index/row number in dataset.  
[test (2012-02-22).proj](https://us1.discourse-cdn.com/inductiveautomation/original/1X/962a99e0e8e4916d276bb4292426dbbea38626bd.proj) (11.6 KB)

---

<div class="post-metadata">

**Author:** ![Malcolm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/malcolm/32/5970_2.png) [@Malcolm](https://forum.inductiveautomation.com/u/Malcolm)\
**Post date:** [February 22, 2012, 4:29pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/8 "2012-02-22T16:29:02Z")

</div>

Robert,

Thank you for the project, I have confuse you with the image I posted its not a Tree Control Im using it is the Row Selector from the reporting components tab, Although, this displays as a Tree it has a reduced number of properties available compared to the tree.

Appologies for my naming of the image…

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [February 22, 2012, 8:33pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/9 "2012-02-22T20:33:11Z")

</div>

I was wondering if that was the case when I created that project and noticed the selectedPath was a basic property. 😆

No harm done. Sorry I can’t help you with the reporting module. Never used it.

---

<div class="post-metadata">

**Author:** ![Malcolm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/malcolm/32/5970_2.png) [@Malcolm](https://forum.inductiveautomation.com/u/Malcolm)\
**Post date:** [February 27, 2012, 6:39pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/10 "2012-02-27T18:39:50Z")

</div>

Hi,

Just a nudge on this topic if anyone has an answer or should I put this in as a feature request !

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [February 28, 2012, 4:02pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/11 "2012-02-28T16:02:20Z")

</div>

I think you need to post a feature request because the hierarchy is dynamic.

---

<div class="post-metadata">

**Author:** ![Malcolm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/malcolm/32/5970_2.png) [@Malcolm](https://forum.inductiveautomation.com/u/Malcolm)\
**Post date:** [February 29, 2012, 7:35am UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/12 "2012-02-29T07:35:02Z")

</div>

Will Do, Thanks Travis

---

<div class="post-metadata">

**Author:** ![george](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/george/32/14066_2.png) [@george](https://forum.inductiveautomation.com/u/george)\
**Post date:** [August 13, 2014, 2:51pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/13 "2014-08-13T14:51:15Z")

</div>

Any further developments on this?  
I need to do the same thing - want to generate a default filename for saving a report, based on what was selected using the Row Selector.

I’m only filtering on one item so it’s a simple setup.

I know I could look at the Data Out and pick out the relevant column to get the filtered value, however this wouldn’t work if All Data was selected.

(I thought about comparing Data In to Data Out to see if they were/weren’t equal but looks like Data In isn’t available as a property)

Ignition version 7.6.6

Thanks.

---

<div class="post-metadata">

**Author:** ![george](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/george/32/14066_2.png) [@george](https://forum.inductiveautomation.com/u/george)\
**Post date:** [August 13, 2014, 3:10pm UTC](https://forum.inductiveautomation.com/t/row-selector-selected-item/3919/14 "2014-08-13T15:10:15Z")

</div>

My mistake, the Data In property is available.

Looks like I can achieve what I need with the following:

`dataOut = event.source.parent.getComponent('Row Selector').dataOut
dataIn = event.source.parent.getComponent('Row Selector').dataIn
if dataOut.rowCount==dataIn.rowCount:
	filename = "All"
else:
	filename = dataOut.getValueAt(0,0)
system.gui.messageBox(filename)
`
