Hello Yaw and Team,
Thank you for the timely response.
I read through the articles that you referred me to and obtained some of the information that I needed.
one thing that struck me and that I would like to have more insight is;-
"you can build an id generator into collect that ensures you don't repeat ids. that requires a programmer though... "
I have pre-generated unique HH IDs 236001, 236002, 236003, 236004,...,236100,...,23600n.
- I would wish to know the code in xml that will allow the interviewer to assign each household number from this list (pre-generated) and ensure that every time he tries to enter an already entered HH ID, the phone will generate an error message say "That household ID had already been assigned, Please try another one"
The code could probably provide the next available HH ID that has not been assigned for convenience sake.
- Each of these households, there are household members. each member needs to be assigned a unique id. say 1, 2, 3, ..., 10, ...n
This information will be so useful.
Regards;
Stephen Karuru Maina
https://profiles.google.com/TheKarurus
···
________________________________ From: Yaw Anokwa To: stephenkarurum@yahoo.com Sent: Friday, August 12, 2011 1:43 AM Subject: Re: FW: ODK Enquiryhi stephen,
unfortunately, there is no simple binding or code that will give you
this functionality.
please read my responses in the thread at
http://groups.google.com/group/opendatakit/browse_thread/thread/d92da9453ca68958
to find some ideas. if that thread isn't clear, please post clarifying
questions to opendatakit@googlegroups.com.
yaw
- I would like to have a unique auto-generated ID in a table of a
group of individuals belonging to one household for each individual
every-time the interviewer adds a group to the members of the
household.What is the correct 'binding' (rule) code that will enable me to do
this? I am doing my programming codes in Notepad++
- Is it possible to have a code that unique picks a unique ID number
from a pre-generated list if numbers and ensures that there are no
duplicates entered in the subsequent data entries?
This would reduce the duplicates during the data entry.