I am now using the Entity function to create a repeat group.
In the register_001 form, I will record the village code, house code, and the total number of people in the house.
The screening_002 form will receive values from register_001(Entity: test_hhid_mem), including the village code, house code, and the total number of people in the house. I use the total number of people from register_001 to create the Repeat group in screening_002.
While this works fine in the Enketo web form, it does not work in the ODK Collect app.
Please help or advise on how to fix this issue, I need to use ODK Collect for data collection
If it works in enketo then definitely it must work in odk collect. Just remember for online entities odk collect updates every 15minutes, so you should manually update if you expect high refresh rate. This requires active internet access to use this functionality.
Try this and if it fails then explains clearly what you meant "does'nt work in odk collect". what is it that you expect and but dont see...?
Okay I see, in screening_002 first try to insert the parameters column. Then in the cell on row 13 and parameters column, specify "value=x, label=y"
where x and y are entities attributes to be used as name and label fields respectively. Let me know if this solves your problem.
I really like how you are developing this concept iteratively and trying out the pieces that you are going to need! Very sorry that you've run into this issue.
Thanks for asking for more details, @Stephen_K_ojwang, that was very helpful.
It looks like when Collect gets the intended count from the Entity List, it's not converting it to a number when you use it as a repeat_count, it's interpreting it as a text value. It should use it as a number and we'll look into fixing this bug.
In the mean time, you can get this to work in both Collect and Enketo by explicitly calling the number function in your calculation to get the count: