# Traslation Tag Browse Tree

**URL:** <https://forum.inductiveautomation.com/t/traslation-tag-browse-tree/11972>\
**Category:** Ignition\
**Created:** [July 26, 2016, 8:39am UTC](https://forum.inductiveautomation.com/t/traslation-tag-browse-tree/11972 "2016-07-26T08:39:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.abrante](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/j.abrante/32/10431_2.png) [@j.abrante](https://forum.inductiveautomation.com/u/j.abrante)\
**Post date:** [July 26, 2016, 8:39am UTC](https://forum.inductiveautomation.com/t/traslation-tag-browse-tree/11972/1 "2016-07-26T08:39:05Z")

</div>

Hi guys

I’m a integrator of glass furnace plants. In this plants we have a lot of measure, valves and motors. I set up factories around the world. It’s nice to “ignition” doing graphics with drag and drop.

But I have a problem with Tag Browse Tree.  
For the operator it is difficult to find the tag you need when you have 800 tags and the P&D. Search “TT1001LT” is more difficult to find “Temp. Line 1 Zone 1 Left Top”.

I thought a solution, but I can not do. In my udt’s I have a QueryTag connect to a table in my database, the result is the description of the tag. For example Name udt: Measure1, QueryTag:Temp. Line 1 Zone 1 Left Top. Could it be that in the tree browser to view the tag tagexpression and not the tag development?

I’m looking for a solution the same a file

Thank for you help and idee

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [July 26, 2016, 10:41am UTC](https://forum.inductiveautomation.com/t/traslation-tag-browse-tree/11972/2 "2016-07-26T10:41:36Z")

</div>

j.abrante

Could you make a dataset or a hidden table of your tags through a script and use the Tree View Component?

---

<div class="post-metadata">

**Author:** ![j.abrante](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/j.abrante/32/10431_2.png) [@j.abrante](https://forum.inductiveautomation.com/u/j.abrante)\
**Post date:** [July 26, 2016, 1:14pm UTC](https://forum.inductiveautomation.com/t/traslation-tag-browse-tree/11972/3 "2016-07-26T13:14:34Z")

</div>

Hi

I had thought that option. But I need the table is dynamic, and do not know how I can make a dynamic table with the Historical Tags.  
You know?

---

<div class="post-metadata">

**Author:** ![j.abrante](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/j.abrante/32/10431_2.png) [@j.abrante](https://forum.inductiveautomation.com/u/j.abrante)\
**Post date:** [July 28, 2016, 2:42pm UTC](https://forum.inductiveautomation.com/t/traslation-tag-browse-tree/11972/4 "2016-07-28T14:42:22Z")

</div>

Resolved

I used the template “AdHoc Trend With Annotations” in “Tag Tree-\> scripting,\> Property change” I put this code.  
In the UDT, I have a Query Tag that will project a table where I have all descriptions and tags of P & D. I select the tag in the code

```auto
if event.propertyName == "inData":
	newData = []
	headers = ["path", "text", "selectedText", "tagPath", "querymode"]
	
	for row in system.dataset.toPyDataSet(event.newValue):
		tagPath = row["tagpath"]
		queryMode = row["querymode"]
		
		parts = tagPath.split("/")
		tagName = parts[-1]
		parts.pop()
		
		#Start Search TagDescription 
		tagforDescription = parts[-2]
		strTagDescription = str(system.tag.read("/".join(parts) + "/TagDescription"))
		splitTagDescription = strTagDescription.split(",")
		TagDescription = splitTagDescription[-3]
		TagDescription = TagDescription.replace("[","")
		#End Search TagDescription 
		
		#Start Search TagPyD 
		strTagPyD = str(system.tag.read("/".join(parts) + "/TagName"))
		splitTagPyD = strTagPyD.split(",")
		TagPyD = splitTagPyD[-3]
		TagPyD = TagPyD.replace("["," ")
		#End Search TagPyD 
		
		#Start Traslation
		for i in range(len(parts)):
			parts[i] = system.util.translate(parts[i])
		#End Traslation

		parts[-1] = TagPyD + "-" + TagDescription

	
		newData.append(["/".join(parts), tagName, tagName, tagPath, queryMode])
		
	event.source.data = system.dataset.toDataSet(headers, newData)

```
