i have a popup Window that I want to be able to perform an onDemand poll of a tag’s value but I’m getting hung up on how to do this. I don’t think my syntax is correct but this is what I have so far in the event handler of the button that will do this:
qv = system.opc.readValue(event.source.parent.getComponent(‘ServerLabel’).text + “/” + event.source.parent.getComponent(‘FolderLabel’).text + “/” + event.source.parent.getComponent(‘TagNameLabel’).text)
event.source.parent.getComponent(‘Numeric Label’).value = qv
(This is the error I get when running it - TypeError: readValue(): expected 2 args; got 1)
I’m bringing in the tag path from 3 label boxes
Thanks!