Filter values in dropdown list

  • Asked
  • Active
  • Viewed 2822 times
1

Dear all,

we have a two-layered sampling design (->plot->tree) with multiple campaigns.

In a follow-up inventory we want to ensure that all trees from the previous campaign have been monitored. Thus we upload preset-data from the previous campaign.

Each campaign looks as follows:
- plot information
- tree information
- further measures

To ensure that all trees from the previous inventory are monitored, I have the following idea: - include a checkbox 'tree_completed' as last item of tree information
- for tree->new inventory display a dropdown-list with all tree-ids (level2) from the previous campaign, filtered for those that are already monitored (i.e. tree_completed=true) - hide the 'further measures' until all trees from the previous inventory have been monitored

Therefore, my questions are: - how do I retrieve sampling point data for the second level key (note that tree_id corresponds to 'level2_code', idm:samplingPointData('level2_code',parent()/plot_id) doesn't seem to work) --> I assume that I could duplicate the level2_code column and name it distinctly in the preset-data? - how do I filter this list for a given list/array of tree_ids for trees that have already been measured in the current inventory (tree_ids occur in the current survey and checkbox 'tree_completed'=true)? - how do I implement this in the current inventory?

Thank you for your help, Chris

1

Accepted answer

Hi Chris,

did you get an answer to your question? I have the same problem with our data form and I would like to know how you solved it in the end.

Thanks, Luka

0

Accepted answer

Dear Chris,
We will contact you to your private email address to better understand your request.
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.