I have a session variable that I need to output in a view.
Let's say the key is
@SESSION.result.parent_age
A view is included dynamically where "parent" is set in the calling view, like this:
<set famMember="parent" />
<include href="age.htm" />
In age.htm I need to ouput the resulting @SESSION.result.parent_age, but I fail to do so.
I have tried
<set age="@SESSION.result"{{ @famMember
}}"_age" /> //also tried with concatenating dots
{{ @age}}
and
<set age
="{{ '@SESSION.result' . @famMember
. '_age'}}" />
and all combinations with or without colnos and concatenating dots, but I always get a 500 error
{{ @SESSION.result.@famMember
.'_age' }}
outputs 'Arrayparent_age'. I understand why this would happen, but how do I get the correct value?
To
be clear: in this particular case there are 40 famMembers with their
corresponding _age, so I really need to get the values dynamically.