ODK Enquiry

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.

  1. 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.

  1. 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 Enquiry

hi 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

  1. 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++

  1. 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.

Hi Stephen:

Unfortunately, that's not quite what Yaw meant. The code you could write to implement such functionality would have to be in Java, modifying ODK Collect itself to add the feature. As he said, there is no simple binding or code that will provide you with what you want.

Best,
Clint

··· On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote:

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.

  1. 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.

  1. 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 <yanokwa@gmail.com (mailto:yanokwa@gmail.com)>
To: stephenkarurum@yahoo.com (mailto:stephenkarurum@yahoo.com)
Sent: Friday, August 12, 2011 1:43 AM
Subject: Re: FW: ODK Enquiry

hi 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 (mailto:opendatakit@googlegroups.com).

yaw

  1. 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++

  1. 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.

--
Post: opendatakit@googlegroups.com (mailto:opendatakit@googlegroups.com)
Unsubscribe: opendatakit+unsubscribe@googlegroups.com (mailto:opendatakit+unsubscribe@googlegroups.com)
Options: http://groups.google.com/group/opendatakit?hl=en

Hello Clint

I have managed to write the code in java, My next issue is how to incorporate or call this code in odk. Would you kindly explain how I can do this?

Regards;
Stephen Karuru Maina
https://profiles.google.com/TheKarurus

··· ________________________________ From: Clint Tseng To: opendatakit@googlegroups.com Cc: Yaw Anokwa ; Maina Karuru Sent: Wednesday, August 17, 2011 7:20 PM Subject: Re: [ODK Community] Re: ODK Enquiry

Hi Stephen:

Unfortunately, that's not quite what Yaw meant. The code you could write to implement such functionality would have to be in Java, modifying ODK Collect itself to add the feature. As he said, there is no simple binding or code that will provide you with what you want.

Best,
Clint
On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote:
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.

  1. 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.

  1. 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 yanokwa@gmail.com
To: stephenkarurum@yahoo.com
Sent: Friday, August 12, 2011 1:43 AM
Subject: Re: FW: ODK Enquiry

hi 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

  1. 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++

  1. 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.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

hi stephen,

i think the fastest approach here is to build an standalone android
application that returns uuid. you'd call this app in the same way
that we call the barcode app (call with an intent and have it return
the id).

yaw

··· On Fri, Aug 19, 2011 at 05:37, Maina karuru wrote: > Hello Clint > I have managed to write the code in java, My next issue is how to > incorporate or call this code in odk. Would you kindly explain how I can do > this? > > Regards; > Stephen Karuru Maina > https://profiles.google.com/TheKarurus > ________________________________ > From: Clint Tseng > To: opendatakit@googlegroups.com > Cc: Yaw Anokwa ; Maina Karuru > Sent: Wednesday, August 17, 2011 7:20 PM > Subject: Re: [ODK Community] Re: ODK Enquiry > > Hi Stephen: > Unfortunately, that's not quite what Yaw meant. The code you could write to > implement such functionality would have to be in Java, modifying ODK Collect > itself to add the feature. As he said, there is no simple binding or code > that will provide you with what you want. > Best, > Clint > On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote: > > 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. > > 1. 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. > > 2. 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 Enquiry > > hi 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 > >> 1. 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++ > >> 2. 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. > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en > > > >

Hi Yao

I was validating my xml form and got this statement "No storage factory has been set; I don't know what kind of storage utility to create. Either set a storage factory, or register your StorageUtilitys directly."

How do I proceed from here to sort this out?

Regards;
Stephen Karuru Maina

··· ________________________________ From: Yaw Anokwa To: Maina karuru Cc: "opendatakit@googlegroups.com" Sent: Friday, August 19, 2011 6:32 PM Subject: Re: [ODK Community] Re: ODK Enquiry

hi stephen,

i think the fastest approach here is to build an standalone android
application that returns uuid. you'd call this app in the same way
that we call the barcode app (call with an intent and have it return
the id).

yaw

On Fri, Aug 19, 2011 at 05:37, Maina karuru stephenkarurum@yahoo.com wrote:

Hello Clint
I have managed to write the code in java, My next issue is how to
incorporate or call this code in odk. Would you kindly explain how I can do
this?

Regards;
Stephen Karuru Maina
https://profiles.google.com/TheKarurus


From: Clint Tseng cxlt@cs.washington.edu
To: opendatakit@googlegroups.com
Cc: Yaw Anokwa yanokwa@gmail.com; Maina Karuru stephenkarurum@yahoo.com
Sent: Wednesday, August 17, 2011 7:20 PM
Subject: Re: [ODK Community] Re: ODK Enquiry

Hi Stephen:
Unfortunately, that's not quite what Yaw meant. The code you could write to
implement such functionality would have to be in Java, modifying ODK Collect
itself to add the feature. As he said, there is no simple binding or code
that will provide you with what you want.
Best,
Clint
On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote:

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.

  1. 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.

  1. 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 yanokwa@gmail.com
To: stephenkarurum@yahoo.com
Sent: Friday, August 12, 2011 1:43 AM
Subject: Re: FW: ODK Enquiry

hi 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

  1. 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++

  1. 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.

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

this is a bug in validate v1.4. go to
http://code.google.com/p/opendatakit/downloads/list and download v1.5
-- it has the fix.

yaw

··· On Wed, Oct 12, 2011 at 02:08, Maina karuru wrote: > Hi Yao > I was validating my xml form and got this statement "No storage factory has > been set; I don't know what kind of storage utility to create. Either set a > storage factory, or register your StorageUtilitys directly." > How do I proceed from here to sort this out? > > Regards; > Stephen Karuru Maina > > ________________________________ > From: Yaw Anokwa > To: Maina karuru > Cc: "opendatakit@googlegroups.com" > Sent: Friday, August 19, 2011 6:32 PM > Subject: Re: [ODK Community] Re: ODK Enquiry > > hi stephen, > > i think the fastest approach here is to build an standalone android > application that returns uuid. you'd call this app in the same way > that we call the barcode app (call with an intent and have it return > the id). > > yaw > > On Fri, Aug 19, 2011 at 05:37, Maina karuru wrote: >> Hello Clint >> I have managed to write the code in java, My next issue is how to >> incorporate or call this code in odk. Would you kindly explain how I can >> do >> this? >> >> Regards; >> Stephen Karuru Maina >> https://profiles.google.com/TheKarurus >> ________________________________ >> From: Clint Tseng >> To: opendatakit@googlegroups.com >> Cc: Yaw Anokwa ; Maina Karuru >> >> Sent: Wednesday, August 17, 2011 7:20 PM >> Subject: Re: [ODK Community] Re: ODK Enquiry >> >> Hi Stephen: >> Unfortunately, that's not quite what Yaw meant. The code you could write >> to >> implement such functionality would have to be in Java, modifying ODK >> Collect >> itself to add the feature. As he said, there is no simple binding or code >> that will provide you with what you want. >> Best, >> Clint >> On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote: >> >> 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. >> >> 1. 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. >> >> 2. 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 Enquiry >> >> hi 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 >> >>> 1. 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++ >> >>> 2. 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. >> >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> >> >> > > >

Team

I am trying to pick a unique household Id using the following xml code.
I am not sure where I am doing it wrong. Can someone sort me out?...

<?xml version="1.0" encoding="UTF-8"?>

<xf:html xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jr="http://openrosa.org/javarosa">
xf:head
xf:titleUnique Household ID</xf:title>




<provider_id />
<household_id/>


    <!-- Survey Bindings -->
        <bind nodeset="/form/survey/provider_id" jr:constraintMsg="Invalid Provider ID. Please check and re-enter." type="string"  required="true()"/>    
        <bind nodeset="/form/survey/household_id" constraint=". &lt; ((../provider_id * 1000)+1000) and . &gt; ((../provider_id * 1000)-1) and checkdigit(.) and unique('survey', .)" jr:constraintMsg="Invalid Household ID. Must be 6 digits and start with your provider ID." type="integer"  required="true()"/>
    </model>
</xf:head>
<xf:body>
<!-- Start of Intro -->
    <group>
        <label>Survey Information</label>
            <select1 ref="/form/survey/provider_id">
            <label>Select your assigned CHEW ID Number</label>
                <item>
                    <label>111 Pilot Day</label>
                    <value>111</value>
                </item>
                <item>
                    <label>222 Pilot Day</label>
                    <value>222</value>
                </item>
                
            </select1>
        <input ref="/form/survey/household_id">
            <label>Household ID: Enter 6 digit code starting with your Provider ID: <output ref="/form/survey/provider_id" />
            </label>
        </input>
    </group>
    <!-- End of Intro -->            
<!-- END OF CONDUCT SURVEY -->
</xf:body>

</xf:html>

Regards;
Stephen Karuru Maina
https://profiles.google.com/TheKarurus

··· ________________________________ From: Yaw Anokwa To: Maina karuru Cc: "opendatakit@googlegroups.com" Sent: Thursday, October 13, 2011 1:07 AM Subject: Re: [ODK Community] Re: ODK Enquiry

this is a bug in validate v1.4. go to
http://code.google.com/p/opendatakit/downloads/list and download v1.5
-- it has the fix.

yaw

On Wed, Oct 12, 2011 at 02:08, Maina karuru stephenkarurum@yahoo.com wrote:

Hi Yao
I was validating my xml form and got this statement "No storage factory has
been set; I don't know what kind of storage utility to create. Either set a
storage factory, or register your StorageUtilitys directly."
How do I proceed from here to sort this out?

Regards;
Stephen Karuru Maina


From: Yaw Anokwa yanokwa@gmail.com
To: Maina karuru stephenkarurum@yahoo.com
Cc: "opendatakit@googlegroups.com" opendatakit@googlegroups.com
Sent: Friday, August 19, 2011 6:32 PM
Subject: Re: [ODK Community] Re: ODK Enquiry

hi stephen,

i think the fastest approach here is to build an standalone android
application that returns uuid. you'd call this app in the same way
that we call the barcode app (call with an intent and have it return
the id).

yaw

On Fri, Aug 19, 2011 at 05:37, Maina karuru stephenkarurum@yahoo.com wrote:

Hello Clint
I have managed to write the code in java, My next issue is how to
incorporate or call this code in odk. Would you kindly explain how I can
do
this?

Regards;
Stephen Karuru Maina
https://profiles.google.com/TheKarurus


From: Clint Tseng cxlt@cs.washington.edu
To: opendatakit@googlegroups.com
Cc: Yaw Anokwa yanokwa@gmail.com; Maina Karuru
stephenkarurum@yahoo.com
Sent: Wednesday, August 17, 2011 7:20 PM
Subject: Re: [ODK Community] Re: ODK Enquiry

Hi Stephen:
Unfortunately, that's not quite what Yaw meant. The code you could write
to
implement such functionality would have to be in Java, modifying ODK
Collect
itself to add the feature. As he said, there is no simple binding or code
that will provide you with what you want.
Best,
Clint
On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote:

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.

  1. 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.

  1. 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 yanokwa@gmail.com
To: stephenkarurum@yahoo.com
Sent: Friday, August 12, 2011 1:43 AM
Subject: Re: FW: ODK Enquiry

hi 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

  1. 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++

  1. 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.

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

Yao

I am trying to pick a unique household Id using the following xml code.
I am not sure where I am doing it wrong. Can someone sort me out?...

<?xml version="1.0" encoding="UTF-8"?>

<xf:html xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jr="http://openrosa.org/javarosa">
xf:head
xf:titleUnique Household ID</xf:title>

    <!-- Survey Bindings

-->



</xf:head>
xf:body


Survey
Information

Select your assigned CHEW ID Number

111 Pilot Day
111

                 <label>222 Pilot Day</label>
                    <value>222</value>
                </item>
                
            </select1>
        <input ref="/form/survey/household_id">
            <label>Household ID: Enter 6 digit code starting with your Provider ID: <output ref="/form/survey/provider_id" />
       
 </label>
        </input>
    </group>
    <!-- End of Intro -->            
<!-- END OF CONDUCT SURVEY -->
</xf:body>

</xf:html>

Regards;
Stephen Karuru Maina
https://profiles.google.com/TheKarurus

··· ________________________________

hi maina,

please file a bug report at
http://code.google.com/p/opendatakit/issues/list describing exactly
what you are trying to accomplish what is going wrong. as it stands,
the information you have provided is inadequate.

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html is a good
resource for learning about how to write good bug reports.

yaw

··· On Thu, Oct 13, 2011 at 03:49, Maina karuru wrote: > Team > > I am trying to pick a unique household Id using the following xml code. > I am not sure where I am doing it wrong. Can someone sort me out?... > > <?xml version="1.0" encoding="UTF-8"?> > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:jr="http://openrosa.org/javarosa"> > > Unique Household ID > > > > > > > > > > > > jr:constraintMsg="Invalid Provider ID. Please check and re-enter." > type="string" required="true()"/> > required="true()"/> > > > > > > Survey Information > > Select your assigned CHEW ID Number > > 111 Pilot Day > 111 > > > 222 Pilot Day > 222 > > > > > Household ID: Enter 6 digit code starting with your > Provider ID: > > > > > > > > > > > Regards; > Stephen Karuru Maina > https://profiles.google.com/TheKarurus > ________________________________ > From: Yaw Anokwa > To: Maina karuru > Cc: "opendatakit@googlegroups.com" > Sent: Thursday, October 13, 2011 1:07 AM > Subject: Re: [ODK Community] Re: ODK Enquiry > > this is a bug in validate v1.4. go to > http://code.google.com/p/opendatakit/downloads/list and download v1.5 > -- it has the fix. > > yaw > > On Wed, Oct 12, 2011 at 02:08, Maina karuru wrote: >> Hi Yao >> I was validating my xml form and got this statement "No storage factory >> has >> been set; I don't know what kind of storage utility to create. Either set >> a >> storage factory, or register your StorageUtilitys directly." >> How do I proceed from here to sort this out? >> >> Regards; >> Stephen Karuru Maina >> >> ________________________________ >> From: Yaw Anokwa >> To: Maina karuru >> Cc: "opendatakit@googlegroups.com" >> Sent: Friday, August 19, 2011 6:32 PM >> Subject: Re: [ODK Community] Re: ODK Enquiry >> >> hi stephen, >> >> i think the fastest approach here is to build an standalone android >> application that returns uuid. you'd call this app in the same way >> that we call the barcode app (call with an intent and have it return >> the id). >> >> yaw >> >> On Fri, Aug 19, 2011 at 05:37, Maina karuru wrote: >>> Hello Clint >>> I have managed to write the code in java, My next issue is how to >>> incorporate or call this code in odk. Would you kindly explain how I can >>> do >>> this? >>> >>> Regards; >>> Stephen Karuru Maina >>> https://profiles.google.com/TheKarurus >>> ________________________________ >>> From: Clint Tseng >>> To: opendatakit@googlegroups.com >>> Cc: Yaw Anokwa ; Maina Karuru >>> >>> Sent: Wednesday, August 17, 2011 7:20 PM >>> Subject: Re: [ODK Community] Re: ODK Enquiry >>> >>> Hi Stephen: >>> Unfortunately, that's not quite what Yaw meant. The code you could write >>> to >>> implement such functionality would have to be in Java, modifying ODK >>> Collect >>> itself to add the feature. As he said, there is no simple binding or code >>> that will provide you with what you want. >>> Best, >>> Clint >>> On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote: >>> >>> 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. >>> >>> 1. 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. >>> >>> 2. 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 Enquiry >>> >>> hi 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 >>> >>>> 1. 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++ >>> >>>> 2. 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. >>> >>> >>> -- >>> Post: opendatakit@googlegroups.com >>> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>> Options: http://groups.google.com/group/opendatakit?hl=en >>> >>> >>> >>> >> >> >> > > >

Yao,

I wish to take this opportunity to clarify what I did and the results I expected to have from my code

First, the code is to capture household ids.

This is possible with no issues when the code does not contain and checkdigit(.) and unique('survey', .)

Unfortunately, the interviewer can enter the same household id to subsequent forms(entries) without notice. thus introducing duplicates over and over again. So I searched on ways of introducing some checks on this. That's how I came up with the highlighted code above.

This code works for other forms but in this particular case, it is not working rather it is forcing me to close the form. Why is it so and what would be the appropriate code?

See the code below.

Regards;
Stephen Karuru Maina

··· ________________________________ From: Yaw Anokwa To: Maina karuru Cc: opendatakit@googlegroups.com Sent: Sunday, October 16, 2011 8:15 PM Subject: Re: [ODK Community] Re: ODK Enquiry

hi maina,

please file a bug report at
http://code.google.com/p/opendatakit/issues/list describing exactly
what you are trying to accomplish what is going wrong. as it stands,
the information you have provided is inadequate.

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html is a good
resource for learning about how to write good bug reports.

yaw

On Thu, Oct 13, 2011 at 03:49, Maina karuru stephenkarurum@yahoo.com wrote:

Team

I am trying to pick a unique household Id using the following xml code.
I am not sure where I am doing it wrong. Can someone sort me out?...

<?xml version="1.0" encoding="UTF-8"?>

<xf:html xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jr="http://openrosa.org/javarosa">
xf:head
xf:titleUnique Household ID</xf:title>




<provider_id />
<household_id/>


    <!-- Survey Bindings -->
        <bind nodeset="/form/survey/provider_id"

jr:constraintMsg="Invalid Provider ID. Please check and re-enter."
type="string" required="true()"/>


</xf:head>
xf:body


Survey Information

Select your assigned CHEW ID Number

111 Pilot Day
111


222 Pilot Day
222

            </select1>
        <input ref="/form/survey/household_id">
            <label>Household ID: Enter 6 digit code starting with your

Provider ID:





</xf:body>
</xf:html>

Regards;
Stephen Karuru Maina
https://profiles.google.com/TheKarurus


From: Yaw Anokwa yanokwa@gmail.com
To: Maina karuru stephenkarurum@yahoo.com
Cc: "opendatakit@googlegroups.com" opendatakit@googlegroups.com
Sent: Thursday, October 13, 2011 1:07 AM
Subject: Re: [ODK Community] Re: ODK Enquiry

this is a bug in validate v1.4. go to
http://code.google.com/p/opendatakit/downloads/list and download v1.5
-- it has the fix.

yaw

On Wed, Oct 12, 2011 at 02:08, Maina karuru stephenkarurum@yahoo.com wrote:

Hi Yao
I was validating my xml form and got this statement "No storage factory
has
been set; I don't know what kind of storage utility to create. Either set
a
storage factory, or register your StorageUtilitys directly."
How do I proceed from here to sort this out?

Regards;
Stephen Karuru Maina


From: Yaw Anokwa yanokwa@gmail.com
To: Maina karuru stephenkarurum@yahoo.com
Cc: "opendatakit@googlegroups.com" opendatakit@googlegroups.com
Sent: Friday, August 19, 2011 6:32 PM
Subject: Re: [ODK Community] Re: ODK Enquiry

hi stephen,

i think the fastest approach here is to build an standalone android
application that returns uuid. you'd call this app in the same way
that we call the barcode app (call with an intent and have it return
the id).

yaw

On Fri, Aug 19, 2011 at 05:37, Maina karuru stephenkarurum@yahoo.com wrote:

Hello Clint
I have managed to write the code in java, My next issue is how to
incorporate or call this code in odk. Would you kindly explain how I can
do
this?

Regards;
Stephen Karuru Maina
https://profiles.google.com/TheKarurus


From: Clint Tseng cxlt@cs.washington.edu
To: opendatakit@googlegroups.com
Cc: Yaw Anokwa yanokwa@gmail.com; Maina Karuru
stephenkarurum@yahoo.com
Sent: Wednesday, August 17, 2011 7:20 PM
Subject: Re: [ODK Community] Re: ODK Enquiry

Hi Stephen:
Unfortunately, that's not quite what Yaw meant. The code you could write
to
implement such functionality would have to be in Java, modifying ODK
Collect
itself to add the feature. As he said, there is no simple binding or code
that will provide you with what you want.
Best,
Clint
On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote:

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.

  1. 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.

  1. 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 yanokwa@gmail.com
To: stephenkarurum@yahoo.com
Sent: Friday, August 12, 2011 1:43 AM
Subject: Re: FW: ODK Enquiry

hi 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

  1. 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++

  1. 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.

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

maina,

again, if you'd like assistance with this issue, please file a bug
report at http://code.google.com/p/opendatakit/issues/list. attach
your form there and describe what versions of software you are using.

checkdigit and unique are methods that are not in the stock version of
collect, so this is likely an issue with some version of code that we
don't support. the best way to figure this out is for you to file a
bug report at http://code.google.com/p/opendatakit/issues/list with
links to the version of software you are using.

yaw

··· On Sun, Oct 16, 2011 at 12:03, Maina karuru wrote: > Yao, > I wish to take this opportunity to clarify what I did and the results I > expected to have from my code > First, the code is to capture household ids. > This is possible with no issues when the code does not contain and > checkdigit(.) and unique('survey', .) > > Unfortunately, the interviewer can enter the same household id to subsequent > forms(entries) without notice. thus introducing duplicates over and over > again. So I searched on ways of introducing some checks on this. That's how > I came up with the highlighted code above. > This code works for other forms but in this particular case, it is not > working rather it is forcing me to close the form. Why is it so and what > would be the appropriate code? > > See the code below. > > Regards; > Stephen Karuru Maina > > ________________________________ > From: Yaw Anokwa > To: Maina karuru > Cc: opendatakit@googlegroups.com > Sent: Sunday, October 16, 2011 8:15 PM > Subject: Re: [ODK Community] Re: ODK Enquiry > > hi maina, > > please file a bug report at > http://code.google.com/p/opendatakit/issues/list describing exactly > what you are trying to accomplish what is going wrong. as it stands, > the information you have provided is inadequate. > > http://www.chiark.greenend.org.uk/~sgtatham/bugs.html is a good > resource for learning about how to write good bug reports. > > yaw > > > On Thu, Oct 13, 2011 at 03:49, Maina karuru wrote: >> Team >> >> I am trying to pick a unique household Id using the following xml code. >> I am not sure where I am doing it wrong. Can someone sort me out?... >> >> <?xml version="1.0" encoding="UTF-8"?> >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema" >> xmlns:xs="http://www.w3.org/2001/XMLSchema" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:jr="http://openrosa.org/javarosa"> >> >> Unique Household ID >> >> >> >> >> >> >> >> >> >> >> >> > jr:constraintMsg="Invalid Provider ID. Please check and re-enter." >> type="string" required="true()"/> >> > required="true()"/> >> >> >> >> >> >> Survey Information >> >> Select your assigned CHEW ID Number >> >> 111 Pilot Day >> 111 >> >> >> 222 Pilot Day >> 222 >> >> >> >> >> Household ID: Enter 6 digit code starting with your >> Provider ID: >> >> >> >> >> >> >> >> >> >> >> Regards; >> Stephen Karuru Maina >> https://profiles.google.com/TheKarurus >> ________________________________ >> From: Yaw Anokwa >> To: Maina karuru >> Cc: "opendatakit@googlegroups.com" >> Sent: Thursday, October 13, 2011 1:07 AM >> Subject: Re: [ODK Community] Re: ODK Enquiry >> >> this is a bug in validate v1.4. go to >> http://code.google.com/p/opendatakit/downloads/list and download v1.5 >> -- it has the fix. >> >> yaw >> >> On Wed, Oct 12, 2011 at 02:08, Maina karuru wrote: >>> Hi Yao >>> I was validating my xml form and got this statement "No storage factory >>> has >>> been set; I don't know what kind of storage utility to create. Either set >>> a >>> storage factory, or register your StorageUtilitys directly." >>> How do I proceed from here to sort this out? >>> >>> Regards; >>> Stephen Karuru Maina >>> >>> ________________________________ >>> From: Yaw Anokwa >>> To: Maina karuru >>> Cc: "opendatakit@googlegroups.com" >>> Sent: Friday, August 19, 2011 6:32 PM >>> Subject: Re: [ODK Community] Re: ODK Enquiry >>> >>> hi stephen, >>> >>> i think the fastest approach here is to build an standalone android >>> application that returns uuid. you'd call this app in the same way >>> that we call the barcode app (call with an intent and have it return >>> the id). >>> >>> yaw >>> >>> On Fri, Aug 19, 2011 at 05:37, Maina karuru wrote: >>>> Hello Clint >>>> I have managed to write the code in java, My next issue is how to >>>> incorporate or call this code in odk. Would you kindly explain how I can >>>> do >>>> this? >>>> >>>> Regards; >>>> Stephen Karuru Maina >>>> https://profiles.google.com/TheKarurus >>>> ________________________________ >>>> From: Clint Tseng >>>> To: opendatakit@googlegroups.com >>>> Cc: Yaw Anokwa ; Maina Karuru >>>> >>>> Sent: Wednesday, August 17, 2011 7:20 PM >>>> Subject: Re: [ODK Community] Re: ODK Enquiry >>>> >>>> Hi Stephen: >>>> Unfortunately, that's not quite what Yaw meant. The code you could write >>>> to >>>> implement such functionality would have to be in Java, modifying ODK >>>> Collect >>>> itself to add the feature. As he said, there is no simple binding or >>>> code >>>> that will provide you with what you want. >>>> Best, >>>> Clint >>>> On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote: >>>> >>>> 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. >>>> >>>> 1. 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. >>>> >>>> 2. 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 Enquiry >>>> >>>> hi 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 >>>> >>>>> 1. 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++ >>>> >>>>> 2. 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. >>>> >>>> >>>> -- >>>> Post: opendatakit@googlegroups.com >>>> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>>> Options: http://groups.google.com/group/opendatakit?hl=en >>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> > > >

Maina,

If you are referring to AMPATH's HCT form which had those two functions,
be aware that the form uses a customized ODK. This is an old version
collect (1.1.2) so building any form against it is not the best way to go.

As Yaw has suggested, filing a bug report is the best way to have
assistance.

--Sam

··· On 10/16/2011 10:19 PM, Yaw Anokwa wrote: > maina, > > again, if you'd like assistance with this issue, please file a bug > report at http://code.google.com/p/opendatakit/issues/list. attach > your form there and describe what versions of software you are using. > > checkdigit and unique are methods that are not in the stock version of > collect, so this is likely an issue with some version of code that we > don't support. the best way to figure this out is for you to file a > bug report at http://code.google.com/p/opendatakit/issues/list with > links to the version of software you are using. > > yaw > > On Sun, Oct 16, 2011 at 12:03, Maina karuru wrote: >> Yao, >> I wish to take this opportunity to clarify what I did and the results I >> expected to have from my code >> First, the code is to capture household ids. >> This is possible with no issues when the code does not contain and >> checkdigit(.) and unique('survey', .) >> >> Unfortunately, the interviewer can enter the same household id to subsequent >> forms(entries) without notice. thus introducing duplicates over and over >> again. So I searched on ways of introducing some checks on this. That's how >> I came up with the highlighted code above. >> This code works for other forms but in this particular case, it is not >> working rather it is forcing me to close the form. Why is it so and what >> would be the appropriate code? >> >> See the code below. >> >> Regards; >> Stephen Karuru Maina >> >> ________________________________ >> From: Yaw Anokwa >> To: Maina karuru >> Cc: opendatakit@googlegroups.com >> Sent: Sunday, October 16, 2011 8:15 PM >> Subject: Re: [ODK Community] Re: ODK Enquiry >> >> hi maina, >> >> please file a bug report at >> http://code.google.com/p/opendatakit/issues/list describing exactly >> what you are trying to accomplish what is going wrong. as it stands, >> the information you have provided is inadequate. >> >> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html is a good >> resource for learning about how to write good bug reports. >> >> yaw >> >> >> On Thu, Oct 13, 2011 at 03:49, Maina karuru wrote: >>> Team >>> >>> I am trying to pick a unique household Id using the following xml code. >>> I am not sure where I am doing it wrong. Can someone sort me out?... >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> >> xmlns:xsd="http://www.w3.org/2001/XMLSchema" >>> xmlns:xs="http://www.w3.org/2001/XMLSchema" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xmlns:jr="http://openrosa.org/javarosa"> >>> >>> Unique Household ID >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> jr:constraintMsg="Invalid Provider ID. Please check and re-enter." >>> type="string" required="true()"/> >>> >> required="true()"/> >>> >>> >>> >>> >>> >>> Survey Information >>> >>> Select your assigned CHEW ID Number >>> >>> 111 Pilot Day >>> 111 >>> >>> >>> 222 Pilot Day >>> 222 >>> >>> >>> >>> >>> Household ID: Enter 6 digit code starting with your >>> Provider ID: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Regards; >>> Stephen Karuru Maina >>> https://profiles.google.com/TheKarurus >>> ________________________________ >>> From: Yaw Anokwa >>> To: Maina karuru >>> Cc: "opendatakit@googlegroups.com" >>> Sent: Thursday, October 13, 2011 1:07 AM >>> Subject: Re: [ODK Community] Re: ODK Enquiry >>> >>> this is a bug in validate v1.4. go to >>> http://code.google.com/p/opendatakit/downloads/list and download v1.5 >>> -- it has the fix. >>> >>> yaw >>> >>> On Wed, Oct 12, 2011 at 02:08, Maina karuru wrote: >>>> Hi Yao >>>> I was validating my xml form and got this statement "No storage factory >>>> has >>>> been set; I don't know what kind of storage utility to create. Either set >>>> a >>>> storage factory, or register your StorageUtilitys directly." >>>> How do I proceed from here to sort this out? >>>> >>>> Regards; >>>> Stephen Karuru Maina >>>> >>>> ________________________________ >>>> From: Yaw Anokwa >>>> To: Maina karuru >>>> Cc: "opendatakit@googlegroups.com" >>>> Sent: Friday, August 19, 2011 6:32 PM >>>> Subject: Re: [ODK Community] Re: ODK Enquiry >>>> >>>> hi stephen, >>>> >>>> i think the fastest approach here is to build an standalone android >>>> application that returns uuid. you'd call this app in the same way >>>> that we call the barcode app (call with an intent and have it return >>>> the id). >>>> >>>> yaw >>>> >>>> On Fri, Aug 19, 2011 at 05:37, Maina karuru wrote: >>>>> Hello Clint >>>>> I have managed to write the code in java, My next issue is how to >>>>> incorporate or call this code in odk. Would you kindly explain how I can >>>>> do >>>>> this? >>>>> >>>>> Regards; >>>>> Stephen Karuru Maina >>>>> https://profiles.google.com/TheKarurus >>>>> ________________________________ >>>>> From: Clint Tseng >>>>> To: opendatakit@googlegroups.com >>>>> Cc: Yaw Anokwa; Maina Karuru >>>>> >>>>> Sent: Wednesday, August 17, 2011 7:20 PM >>>>> Subject: Re: [ODK Community] Re: ODK Enquiry >>>>> >>>>> Hi Stephen: >>>>> Unfortunately, that's not quite what Yaw meant. The code you could write >>>>> to >>>>> implement such functionality would have to be in Java, modifying ODK >>>>> Collect >>>>> itself to add the feature. As he said, there is no simple binding or >>>>> code >>>>> that will provide you with what you want. >>>>> Best, >>>>> Clint >>>>> On Wednesday, August 17, 2011 at 12:48 AM, Maina karuru wrote: >>>>> >>>>> 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. >>>>> >>>>> 1. 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. >>>>> >>>>> 2. 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 Enquiry >>>>> >>>>> hi 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 >>>>> >>>>>> 1. 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++ >>>>>> 2. 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. >>>>> >>>>> -- >>>>> Post: opendatakit@googlegroups.com >>>>> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>>>> Options: http://groups.google.com/group/opendatakit?hl=en >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >>