The entities list is a great feature. I have upgraded my odk-central version and I can see the new entities feature. Great feature and I look forward to leveraging it.
I have gone through docs and tree registration and tree followup example. It works like a charm and will be very useful.
2. What steps can we take to reproduce this issue?
I have a few quetions:
I already have a farmer registration form that we have been using with the v2023.3.1. This form has been operational for the last few months.
I would like to use this farmer registration from as entities in a follow up form. If I update the form with the entities tab in the new version, will I see all the entities already collected automatically?
Is it possible to add a csv file as an entity list and then follow up with the farmer registration form?
Finally, I have th followng scenario:
Even after I have the entity list from the farmer registration form, I will have a situation in the field, where I want to register a new farmer and conduct the followup survey on the same device right there. And I will not have internet connection to upload the farmer registration, then refresh the list, then do the followup survey with the farmer.
How can I do this? And workaround?
Eg. would it be pssible to have an Other in the select_one_from_file and have an Others category and have the person fill the name and basic details do the followup servey?
3. What have you tried to fix the issue?
4. Upload any forms or screenshots you can share publicly below.
Unfortunately, you can't make Entities out of old Submissions because those Submissions were created using a Form that didn't have entities sheet and save_to details.
Regarding uploading CSV file to EntityList, that feature is in the pipeline. For now, you can use Create Entity API to create entity from the CSV file. If you know python you can use pyodk; If you don't know programming then you can use Postman for consuming APIs. Here is a short tutorial on how to use CSV file in Postman to upload data in bulk.
I already have a Farmer Registration Form that collects entities data in an older version of ODK Version2023.2 and currently we have about 2000 farmers registered.
I can modify the form and add the entities tab and save_to; and upload the form. No other change.
My question is, if I edit and upload a new version of the form with entities sheet and save_to details, will the already registered farmers be taken as entities for the farmer survey form? Will it work? Are the entities created at the time of submission? Is there a workaround?
One more thought to create entities from an already existing form and submissions.
Can i add a new version of the existing form with Changing Entity List Settings. The new version of the form will have Create Entities when Submissions are marked as Approved and use an API to change the already submitted records to Approved. Will that work?
Thank you. Got it. Also looked at the API and we will be able to upload to the EntityList.
When I upload a new version of the "Farmer Registration Form" that defines the "Entity List" called "farmers", will the data newly collected be appended to the same table? This is because we are continuously using the "Farmer Registration" for further analysis.
Thanks. We are able to use the API to add the older submissions to the entities data.
But we wanted to know if we can add submission metadata fields into the entities data so that we can related the submission to the entities data. I have added a separate issue on this issue. Using the entities feature
Apologies for mot being clear. I understand that entities cannot be created from older submissions. And I have managed to download older submissions as a csv and use the API to add the older submissions to the entity list.
But my question is; I would like to link the entities created with the submissions. So if I can have the uuid of the submissions in the entities list created that would be useful. Is this possible?
Currently there is no way to create link between Entities created via API and existing Submissions. However, you can create a new property like "submissionUUID" in your Entity List and populate its value from the CSV.
@Lal_S I don't think ruODK has Entities functions yet.
I select one from record from the entity list in a subsequent form. When I select that record in the subsequent from, I want the name of the farmer as well the submissionID (that is available in the entity list) in the subsequent form. How do I do that?
Are you sure that submissionUUID has the exact same case as the property name? Are you able to see in Central that the entity you select has a value set for submissionUUID? Are you getting a blank value or something else? Is farmer the name of the select question you're using to choose an entity?
Do not know if I am getting a blank value. Is there a log where I can see. There is no exception or error
The farmer is the name.
a) Is the : the issue?
b) Here is the form spreadsheet... select_one_from_file buzaaya-farmer-members.csv farmer Farmer Member Pick the farmer from the list yes autocomplete collection_centre=${cc} value=farmer_name
c) And the calculate instance('buzaaya-farmer-members')/root/item[name=${farmer}]/submissionUUID