obtain the value of an attribute from a multiple entity to use it in another multiple entity

  • Asked
  • Active
  • Viewed 3130 times
0

Hello OF team,

I have a multiple entity table with an taxon and dbh attributes. The dbh is calculated as the height value of the tallest tree in the forest, multiplicated by 3 (dbhh = ht*3). I want to use this dbh value for as a check rule value in the dbh mesure of trees in a plot. How can i refer the dbh value from another entity for each especie?

Thanks!!

Lluís

0

Accepted answer

Hi Lluís,
If I understand correctly your question, this is the structure of your survey: you have an entity tree with attributes species and height and another entity tree_2 with an attribute species_2.
To simplify your calculations you can add a calculated attribute in tree_2 to store the value of the tallest tree with the same species specified in each row of tree_2 (call this attribute ht): the expression to write in the Calculated value is: math:max(parent()/tree[species = $context/species_2]/height).
Then you can define another calculated attribute dbhh with an expression like this: ht * 3.
In the end you can use the value of dbhh in a comparison check inside your dbh attribute of the tree_2 entity.
Does it fits your needs?
Many thanks,
Open Foris Team

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.