Esn
1
Hi,
I’m trying to make an expression that needs the tags parent folder path.
Is it possible to get that somehow?
{PathToParentFolder} and {[.]} doesn’t seem to work.
It’s not a UDT. It’s just an expression tag inside a folder.
Running Ign v. 8.0.3.
Thanks
accyroy
2
Sounds like you really should be using a UDT for this, but you can get what you want by using string manipulation:
left({[.]mytag.Path},lastIndexOf({[.]mytag.Path},{[.]mytag.Name}))
We are getting the complete tag path and then removing the tag name from the end.
1 Like
A couple of options that seem to work in Ignition 8.1.30 tag expressions:
{[.].Path} // Path to parent folder
{[.].Name} // Name of parent folder
1 Like