Access UDT root custom property inside a Tag Expression

Hi

I have a UDT that has custom property at root level and inside UDT I have some tags inside a folder.

I want those tags access root custom property in expression. What is the correct syntax?

In following code the first two dots is used to access root level and the next one is for custom property and API is the name of the custom property. But this is not resolve.

{[.]...API}

If I have a tag in the root of UDT this syntax works:

{[.].API}

So what is correct syntax to read UDT root custom property inside a Tag Expression?

Tested in both 8.1 and 8.3

I am not sure how to do this using just the path referencing, but this works tag(concat({ParentInstanceName},".API"))

Thanks Markus. This seems a bug to me that path referring doesn't work.

The interesting problem is if I define custom property on one of the internal folder I can't edit it in udt instance in designer.

@pturmel In your option which method execute more efficient? (Of course if direct udy tag referencing is working)

I had a ticket open on something very similar to this. The resolution from support was what @Markus_Oosthuizen suggested. I don't remember if it was marked as a bug, or just the way it works right now.

Have you tried {[.]../.API} ?

My mind keeps going to how many times I heard @pturmel say to avoid tag() at all costs.

(post deleted by author)

Except you cannot avoid them in expression tags. As there is no such thing as indirect bindings for tags.

Yes not working

Even this method doesn't work if your insurance is in nested folder.

InstanceName means something different at different times. We created a tag on the parent UDT as an anchor for all other embedded UDTs that are used in the parent UDT. I believe it is an expression tag that is the InstanceName. That way the embedded UDT can grab that as a reference to the parent and then get the data that it needs. I would rather have the ability to read the property directly as you can a tag, but that isn't how it is as the moment.