# Tabstrip- Selected tabs 'Display Name"?

**URL:** <https://forum.inductiveautomation.com/t/tabstrip-selected-tabs-display-name/6738>\
**Category:** Ignition\
**Created:** [June 20, 2013, 9:33pm UTC](https://forum.inductiveautomation.com/t/tabstrip-selected-tabs-display-name/6738 "2013-06-20T21:33:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ram](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@ram](https://forum.inductiveautomation.com/u/ram)\
**Post date:** [June 20, 2013, 9:33pm UTC](https://forum.inductiveautomation.com/t/tabstrip-selected-tabs-display-name/6738/1 "2013-06-20T21:33:12Z")

</div>

Hi,

How can I get the Selected Tabs Display name from a tab strip component ?

Thanks!

[size=85]The great use of life is to spend it for something that outlasts it. ~William James[/size]

---

<div class="post-metadata">

**Author:** ![CPowell](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@CPowell](https://forum.inductiveautomation.com/u/CPowell)\
**Post date:** [June 23, 2013, 5:56pm UTC](https://forum.inductiveautomation.com/t/tabstrip-selected-tabs-display-name/6738/2 "2013-06-23T17:56:53Z")

</div>

Yes, but not directly.  
On tab strips, you can’t ask for the row index number. So we have to get the row index number on our own.

Add the following code to the Mouse Clicked Event Handler on the Tab Strip:

```auto
#Let's get the required varibles
data = event.source.tabData
rowName = event.source.selectedTab
#Set the display name to a broken string
rowDisplayName = "This do not work"

#Let's get the row index number since we can't just ask.
for row in range(data.rowCount):
	test = data.getValueAt(row,"NAME")
	#If we find the row Name we are looking for then get the Display Name and break.
	if test == rowName:
		rowDisplayName = data.getValueAt(row,"DISPLAY_NAME")
		break

#Push the Display Name to a Label on the screen.
event.source.parent.getComponent('Label').text = rowDisplayName
```

Push Display Name where ever you want it. I pushed it to a label.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![ram](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@ram](https://forum.inductiveautomation.com/u/ram)\
**Post date:** [June 27, 2013, 2:37pm UTC](https://forum.inductiveautomation.com/t/tabstrip-selected-tabs-display-name/6738/3 "2013-06-27T14:37:03Z")

</div>

Thanks! Chris. ![:thumb_right:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2026e28c0c425034352c1b75807edf956adc75f4.gif ":thumb\_right:")
