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

Lauri%20%28OF%29's gravatar image

Lauri (OF) ♦♦
6652815
accept rate: 21%


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

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.6k19
accept rate: 20%

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:

×493

question asked: 30 Aug '16, 13:10

question was seen: 3,040 times

last updated: 30 Aug '16, 13:47