You can generate a dataset or an array of objects and bind that to the table's data property. Here's an example of the latter;
folderPath = "[path/to/tags]"
tagPaths = system.tag.browse(folderPath)
tagObjects = []
for tag in tagPaths:
tagPath = folderPath + "/" + tag["name"]
tagValue = system.tag.readBlocking([tagPath])[0].value
tagObject = {
"tagName": tag["name"],
"tagValue": tagValue
}
tagObjects.append(tagObject)
return tagObjects
You'd then configure 2 column objects tagName
and tagValue
. This will populate your table with tags from your tag provider. You can check out this thread, I think there could be a lot of useful info for you;
Perspective table edit example, please - Ignition - Inductive Automation Forum