The first calculated data that is lost when opening the form in Kobotoolbox (to correct some other data) is calculated using a pull data expression “pulldata(‘select_level’, ‘code_naam’, ‘code_key’, ${domein})”
This is used to retreive data from the external csv table in a cascading select system
The second data with a problem is retrieved from a second external csv using a search expression. It searches for plantnames in the external table “soorten_hab” using a string entered in ${soortk} and looking for that string in two fields “dutchname_key” and “Scientname_key”.
search(‘soorten_hab’, ‘contains’, ‘dutchname_key, scientname_key’, ${soortk})
It looks as if Kobotoolbox cannot make the form work with the external CSV’s.
Sorry, what i meant here was that kindly please only share the specific question through the xlsform and not the entire set of questions. Also please share the csv and other files necessary.
Hello,
I have shortened the XLS-form so that it only contains the two sets of questions that give the problems.
I have tested this form and it works on ODK Collect v1.28.1 to collect the data and upload those to KoboToolbox.
But when I try to change some of the entries in Kobotoolbox (Tab “Data/table/edit”) it does not work properly and so I cannot change or correct anything.
I send also two export files. The first contains the original entry, the second one is what remains after I tried to change anything in the cacade-select questions and after I tried to change the two first plant-species names.
FYI, i just made a check and could reproduce your issue. It seems like when you have an information filled using the pulldata function in your survey form you don’t see the same while editing it in the KoBoToolbox server.
Could you share with me your username, project name and the _id that is having issue through a private message. Would like to have a closer look at it and see if i am able to find any issue in it.
Yes, no problem. I will give you a test-username with all permissions on that project.
What is your private email adress - or how do I send a private message?
Bart Roelandt
I observed that you have 2 users where one is the admin and the other is the data_collection account. You have designed and deployed your survey project through the admin user and have shared all the features with the data_collection account. You then collected the data and then tried editing the submissions through the data_collection account.
I tried out the same in my end and it works (with my dummy project). However, i could not open your survey project as the loading was very slow due to a large volume of questions (approximately 368). Would you mind trying the same with a dummy question just to see if it works and not with the correct survey project that has 368 question.
Kindly please let us know what happens. It should work (as it worked for me at my end).
Hi Kal_Lam,
I made a new project, called “A test for kobo” in which I only retained the first part of my project that gives problems beeing edited.
You can try it yourself with the login I have sent you before.
But the result is the same (although the form opens quickly now as it is small): I cannnot edit as the dropdown are not filled with the expected items from the csv.
Hello Kal Lam,
The example “Pull Data for Dates” works very well!
I filled a survey with nr 3 on ODK-collect, uploaded the survey to KoboToolbox and edited it without problem to nr 2 and it responded well.
So your idea is that the problem lies within my form - the way it is built? Or does Enketo not work well when using cascade select or repeats that use external csv’s?
Do you have an example with a cascade-select that uses an external csv that works well?
And do you have an example with a repeat that uses an external csv that works well?
Thank you for this link, but I would like to see an example of a cascade select that uses an external csv.
My list of items in the cascade select is 33918.
I do not think the from will work if I put such long list in the tab “choices”?
For the same reason I would like to see an example of a repeat that uses an external csv that works well
Hello Kal Lam,
Yes, I did try the example (Adding cascading question sets in XLS Form (Option 1), and it works well.
But that is a regular cascade select, where the choice-list is put in the tab “choices”.
Do you suggest I should put my list of 33918 choices in the tab “choices”?
The thing about a “repeat that uses an extarnal csv” is the second part in my form that does not work well on kobotoolbox (see my privat message to you). I will make a second form called “A test for kobo2”, which contains only that part of my form.
I will give a sign when it is uploaded and deployed, so you can see what I mean.
I did upload and deploy the form “A test for kobo2”.
This is the second part of my original form which cannot be edited in kobotoolbox.
I tried editing this shorter version of my original form but editing is still impossible.
This part of my original form is used to enter species found in a plot and then enter a coverage code for each species present in the plot.
The species are entered one by one in a repeat
The long species list (external csv with 10725 species) is filtered using a string that is entered by the surveyor.