1
1

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

asked 30 Aug '16, 13:10

LauriV's gravatar image

LauriV
3162212
accept rate: 22%


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

permanent link

answered 30 Aug '16, 13:47

OF%20Collect's gravatar image

OF Collect ♦♦
2.6k8
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×334

question asked: 30 Aug '16, 13:10

question was seen: 1,355 times

last updated: 30 Aug '16, 13:47