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, 19:57

bryant's gravatar image

bryant
132
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:12

OF%20Collect's gravatar image

OF Collect ♦♦
4.0k18
accept rate: 21%

edited 13 Jan, 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:

×467

question asked: 13 Jan, 19:57

question was seen: 50 times

last updated: 13 Jan, 23:14