# Help with system.tag.readAll

**URL:** <https://forum.inductiveautomation.com/t/help-with-system-tag-readall/6444>\
**Category:** Ignition\
**Created:** [May 10, 2013, 8:25pm UTC](https://forum.inductiveautomation.com/t/help-with-system-tag-readall/6444 "2013-05-10T20:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [May 10, 2013, 8:25pm UTC](https://forum.inductiveautomation.com/t/help-with-system-tag-readall/6444/1 "2013-05-10T20:25:04Z")

</div>

I need some help replacing system.tag.getTagValues with system.tag.readAll. I cant seem to figure out how to pull out just the value and not the quality. any help would be appreciated. here is my existing script using getTagValues

[code]  
query = “SELECT displayname, devicename from devices”  
tag = event.source.getComponent(‘Dropdown 1’).selectedStringValue

if event.propertyName in [“devices”, “refresh”]:  
table = event.source.getComponent(‘Table’)  
newData = []  
header = [“Displayname”, “Identifier”, “Current Throughput”, “Today’s Throughput”, “devicestate”]  
res = system.db.runQuery(query)  
tagPaths = []

for row in res:  
tagPath = row[1]

```
   tagPaths.append("%s%s"% (tagPath,tag))
   tagPaths.append("%s/yestmcftotal"%tagPath)
   tagPaths.append("%s/PrimaryInterval"%tagPath)

```

results = system.tag.getTagValuesl(tagPaths)

idx = 0  
for row in res:  
displayName = row[0]  
tagPath = row[1]  
newData.append([displayName, tagPath, results[0+idx], results[1+idx], results[2+idx]])  
idx += 3

table.data = system.dataset.toDataSet(header, newData)[/code]

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [May 10, 2013, 8:35pm UTC](https://forum.inductiveautomation.com/t/help-with-system-tag-readall/6444/2 "2013-05-10T20:35:33Z")

</div>

You need to reference the value property of the QualifiedValue that is returned. For example, the value of the “ith” item in your results array would be results[i].value.
