New entities feature

Thanks for sharing part of the form definition!

This is something you are setting in the parameters column, right? If so, this means that the value saved to the farmer form field is the value of the farmer_name Entity property. In that case, your expression would be instance('buzaaya-farmer-members')/root/item[farmer_name=${farmer}]/submissionUUID.

My recommendation would be to not set an explicit value. That means the farmer field will hold the system id of the selected Entity and all your lookup expressions will use name=${farmer}. You can also look up the farmer_name value by doing something like instance('buzaaya-farmer-members')/root/item[name=${farmer}]/farmer_name

I have filed an issue to add to documentation around setting a custom value: https://github.com/getodk/docs/issues/1721

2 Likes

Thanks for all your suggestions. I learnt a lot and have implemnented a satisfactory working system.

Thanks to the form and its community.

Prabhakar

4 Likes

Is there any progress on creating an entity list from a CSV file?

"Regarding uploading CSV file to EntityList, that feature is in the pipeline. "

It will be useful to have this. I have a list of entities already listed with a geographical location and would like to use these as entities for a longitudinal study.

Thanks

Prabhakar

1 Like

It shipped a few days ago.

4 Likes

Nice. I will upgrade my Central and checkthis feature out. Congratulations to the team.

I have a question:

Can we have locatin (lat/long) as a variable? In what format should that be? Can I search nearby and locate the longitudinal study entity of interest?

Thanks

Prabhakar

Prabhakar

Good morning @prabha ,

Yes you can give a geometry property to your entities.
You have to use "geometry" as column name and store the locations in the ODK format : https://docs.getodk.org/form-question-types/#location-widgets

1 Like