Reference an attribute for min-count

  • Asked
  • Active
  • Viewed 1535 times
0

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

0

Accepted answer

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

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.

Tip: type a few words from the error message, or put a tag in [brackets] to look only there.

Menu

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.