I am trying to use a dataset that is populated by a query to populate other tags. This is all in a UDT, but I don't seem to be able to get the tags to write within the UDT.
The image below is the dataset I am trying to pull tags from.
Also, system.tag.writeBlocking - Ignition User Manual 8.1 - Ignition Documentation is expecting a list of tagpaths and a list of values to write to those paths so that line should look like, system.tag.writeBlocking(["[.]AccessLevel"], [AccessLevel])
It "tolerates" the misuse but that could break in a future upgrade.
Tip: while the picture of code can be useful for context, always post the (formatted) code so we don't have to type it all out to test it or use it in our answers.
In addition to what @Transistor pointed out, I also am pretty sure that you can't use that notation to read a value from a dataset. You would need to read the value and process the dataset just as normal.
if currentValue.value:
ds = system.tag.readBlocking(['[.]UserLookup'])[0].value
system.tag.writeBlocking(['[.]AccessLevel'],[ds.getValueAt(0,1)])
As a note, I'm not sure that writeBlocking does tolerate a string tag path and value in place of the a list. I know readBlocking does as that is now formally documented. I haven't actually tested it to see.
I have attempted this code, and it doesn't appear to work. Is there a way to pull in the tag path for each of these tags? I know if I use the full tag path, the code will work but when utilizing a UDT I run into issues such as this.