DC -can't acces TOP level atribute from third level entity
-
I have a structure like this:
--MAIN(component) |--COMPONENT |--GROUP
And, in GROUP, I want to access an attribute from MAIN. So, in GROUP I did this:
=MAIN!my_attr
,but it gave me the #
then I tried this way:in COMPONENT; ------------------- Attr = MAIN!my_attr in GROUP; -------- =COMPONENT!Attr
And this worked. But, from my point of view is kinda ugly to redefine at each level .
Is this normal? You can only access the parent's attributes, or it should be possible to access any attributes, no matter how high is the entity in hierarchy ? -
You have it right. It's an inconvenience and makes things more complicated than need be. I think I made a suggestion to Google one time about adding a type of global variable to DC's; or possibly making a variable's scope be from the parent down to children of any depth, but not up to parent components.
Advertisement