I’m trying to use runScript in an expression tag. I thought it was my project script so I changed it to something simple that just returned a string. Here is my expression:
That gives me the following error:
com.inductiveautomation.ignition.common.expressions.ExpressionException: Error executing script for runScript() expression: system.util.getClientID()
When I copy the same expression into the expression binding type of a label’s text property it works.
Is there a difference between a tag and a binding property?
Ultimately what I’m trying to do is a system.opc.readValue for properties of a UDT where I pass the OPC item path into a script and therefore avoid having to create those as Ignition tags. I know I could have an OPC tag in my UDT and build it using data type parameters but it would require passing in a ton of parameters that I can get elsewhere in my tag hierarchy. I think this entire problem could also be solved if we had the ability to bind values of data type parameters…
Thanks in advance,