Reaching a document value in a Tag using expression

I have a UDT, inside it there is root R and inside it there are memory tags.
one of the memory tags has a value {document}. Inside {document} there is object which has another object that has some values that I want to access with expression:
[~]my folder/R/mytag → Value → 2nd object → first parameter

Does this help at all?

EDIT: I see now you’re looking for an expression solution, so that might not be exactly what you’re looking for, but it might help get you there…

1 Like

It helped a lot! Thank you!

Hi, I have a somewhat related issue. This one helps, but what if the “bar” in your example is a number? How do I access the value?

image

Keys that start with a digit are not permitted in JSON, and therefore not permitted in document tags nor in Perspective. (Though not strictly enforced.) Just don't have such keys.

1 Like

Since the property editor isn't visibly yelling at you, it's likely that your key is actually a string-containing-digits, which you would access using the same subscript/square bracket syntax Kevin posted above.

But if it isn't, and also because it's just a confusing idea with poor support in general - as Phil said, don't use numbers as keys. If you need positional referencing...use an array, not an object.

3 Likes

Thank you! This helps. I will stop pursuing using digit as keys!

Yeah, digits does not work at all. Values are blank, but when I tried changing to a string then it gives me the values.

1 Like