Collection of georeferenced data with return of fields from csv files

Hi Giulia,

this is really close to some of our scenarios and needs for biodiversity relative forms.
I achieved to do what you expected for a water level monitoring form (showing the expected value at the day of visit for the selected place) but with really less column (1 per month). I wrote a logical test to get every value (one per month) and show the good one to the user :

In your case you have too much columns to use that way.
(let's say we rename the quadrant and column to avoid forbidden characters so 9432/3 becomes _9432_3)
this calculation will work and return the value 4 for Abies alba :

instance('Species')/root/item[name=${species}]/_9432_3

At the time I created my form, I did not thought about using a question name to access the wanted attribute.
I tried with your form but it seems to not be possible.

instance('Species')/root/item[name=${species}]/${quadrant}

This syntax does not work and does not rise any error (so I think ODK is looking for a column named '${quadrant}' that does not exists. Maybe xlsforms gurus (@LN , @Xiphware and others) can complete or correct my understandings :wink:

This would be really helpful and practical indeed, at least from a theoretical point of view :slight_smile:

1 Like