This is mostly a documentation request.
I was setting up a Gateway Tag Change Script and defined this variable:
"sPath = event.tagPath.getParentPath()"
I assumed this function output a string after reading this section in the manual (from the link below):
This was causing errors because I found that this actually outputs a "BasicTagPath".
Would it be possible to make this more clear in the link below?
https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeObjects
Thanks for reporting; I brought this up with the documentation team and they'll get it updated soon.
pturmel
October 25, 2023, 11:06pm
3
Probably worth removing the duplication between .getTagPath()
and .tagPath
and similar throughout that page. They are the same thing, just the latter is a jython optimization.