Hello,
I have 'tree' entity and I want to get for the (code) attribute 'tree_segment' by default the same value that was given to the previous tree, starting from tree no 2. What's the correct expression?
BR Lauri
Hello,
I have 'tree' entity and I want to get for the (code) attribute 'tree_segment' by default the same value that was given to the previous tree, starting from tree no 2. What's the correct expression?
BR Lauri
Accepted answer
Hi Lauri,
You can access the previous tree information in this way:
parent()/tree[idm:position($this/parent()) - 1]/tree_segment
Don't forget to specify the condition, that must be:
idm:position($this/parent()) > 1
Thanks.
Open Foris Team
Once you sign in you will be able to subscribe for any updates here