# Tag List Report

**URL:** <https://forum.inductiveautomation.com/t/tag-list-report/11621>\
**Category:** Ignition\
**Created:** [May 5, 2016, 3:57pm UTC](https://forum.inductiveautomation.com/t/tag-list-report/11621 "2016-05-05T15:57:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [May 5, 2016, 3:57pm UTC](https://forum.inductiveautomation.com/t/tag-list-report/11621/1 "2016-05-05T15:57:00Z")

</div>

I am trying to find a way to do a report in 7.8.2 that will basically be a tag list.  
I would like to have 1 report that lists all of the tags in the project and another that lists all of the Alarm tags.

I can’t seem to find a way to get these to a report datasource?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [May 5, 2016, 5:14pm UTC](https://forum.inductiveautomation.com/t/tag-list-report/11621/2 "2016-05-05T17:14:13Z")

</div>

For the list of tags, have you tried system.tag.browseTags() in a script datasource?

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [May 5, 2016, 6:44pm UTC](https://forum.inductiveautomation.com/t/tag-list-report/11621/3 "2016-05-05T18:44:11Z")

</div>

I can use that function in a vision window to fill a table, my issue is how do I actually use that as a datasource in a report?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [May 5, 2016, 8:22pm UTC](https://forum.inductiveautomation.com/t/tag-list-report/11621/4 "2016-05-05T20:22:54Z")

</div>

In the data tab of the reporting workspace, I made a new script datasource, using this script:

[code] # Get an array of all tags, then save the data we want for the report  
browseTagArray = system.tag.browseTags(parentPath="[default]")  
tagDataset = []  
tagHeaders = [‘name’, ‘fullPath’, ‘type’, ‘dataType’]  
for browseTag in browseTagArray:  
if not browseTag.isFolder():  
tagDataset.append([browseTag.name, browseTag.fullPath, browseTag.type, browseTag.dataType]);

```
# Put our tag data into the script datasource. In the key browser, this will show up as a datasource
# names 'tags' with the columns found in the tagHeaders variable above.
data['tags'] = system.dataset.toDataSet(tagHeaders, tagDataset)[/code] This example only gets the top level tags. To get [b]all[/b] the tags easily (and sorted), replace the first line of code with [code]	browseTagArray = system.tag.browseTagsSimple("", "ASC")

```

[/code]

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [May 5, 2016, 9:28pm UTC](https://forum.inductiveautomation.com/t/tag-list-report/11621/5 "2016-05-05T21:28:39Z")

</div>

AWESOME!

Thanks Kathy!
