Hello OF Team,

I have a "trees" table nested within "plot". Using a hierarchical code list, I populate a value for the number of trees that exist at a plot (plot/n_trees with parent code plot/plot_id). I would like to use this value to define a function for the "Min Count" field in the "trees" table. I have tried simply "plot/n_trees" without success. How does one reference a code value and use it as an integer at a different node in the survey?

Thank you!

Bryant

asked 13 Jan '23, 19:57

bryant's gravatar image

bryant
134
accept rate: 0%


Dear Bryant,
If n_trees contains a number and it's defined as a numeric attribute, marked as calculated, it should be sufficient to use the attribute name in the expression, or try to use the function number(n_trees) to cast the value into a number.
Many thanks,
Open Foris Team

permanent link

answered 13 Jan '23, 23:12

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

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

edited 13 Jan '23, 23:14

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: 13 Jan '23, 19:57

question was seen: 358 times

last updated: 13 Jan '23, 23:14