Need Help

Dear ODK Group,
I have couple of question regarding ODK Collect development.
1- I want to add "7 Digit, Auto, Unique and Sequential ID Number
for each interview on PDA" in ODK.
2- Is there is any way to control group repeation loop based on a
Number field, instead of asking option for next repeat.
It would be highly appreciable if someone send me examples to tackle above
issues.
Thank you in advance.
BR
Irfan

Waylon just answered me to this question in another post.

Here's the link he gave me:
http://opendatakit.org/help/form-design/binding/

Down the page there is a section on repeating a group a defined number of
times. There are posts here that state a problem with this function, but it
seems to be fixed, as I just tested it and it worked.

··· On Tuesday, June 19, 2012 9:53:57 AM UTC+2, Irfan wrote: > > Dear ODK Group, > I have couple of question regarding ODK Collect development. > 1- I want to add "7 Digit, Auto, Unique and Sequential ID Number > for each interview on PDA" in ODK. > 2- Is there is any way to control group repeation loop based on a > Number field, instead of asking option for next repeat. > It would be highly appreciable if someone send me examples to tackle above > issues. > Thank you in advance. > BR > Irfan >

Irfan, in regard to number 2, do a search on this list, this question has
been asked and answered before.

··· On Tue, Jun 19, 2012 at 10:53 AM, Irfan Ghumman wrote:

Dear ODK Group,
I have couple of question regarding ODK Collect development.
1- I want to add "7 Digit, Auto, Unique and Sequential ID Number
for each interview on PDA" in ODK.
2- Is there is any way to control group repeation loop based on a
Number field, instead of asking option for next repeat.
It would be highly appreciable if someone send me examples to tackle above
issues.
Thank you in advance.
BR
Irfan

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

--
Steven Nsubuga
Mobile: +256772712983
snsubuga@grameenfoundation.org
Skype ID: stebugz
Software Developer
AppLab Uganda
To enable the poor, especially the poorest, to create a world without
poverty

With regards to your first question:

I am not sure how to do sequential numbers because that requires some
sort of state to exist between survey instances and collect currently
does not have the ability to not cross reference information between
instances. Also the numbers could collide across phones or if you
reinstall collect. To ensure that no number collisions happens you
have to have lots of state like how many phones, last install, etc and
I bet there would still be problems. May I suggest using
"InstanceId"s. That way you will also get the benefit of ODK tools
recognizing unique surveys so you don't have double submissions.

http://groups.google.com/group/opendatakit/browse_thread/thread/f77bf8942cdfe182/7c9f83d89b7cb2f6?lnk=gst&q=generating+number+collect#7c9f83d89b7cb2f6

Alternatively you could make each survey into a repeat group and count
the number of surveys and add that to a number but seems dangerous as
you are dependent on one instance and if someone deletes the instance,
or it errors or gets corrupted you could lose everything from that
survey. While I would recommend this approach it is possible to do
what you want using calculate and count the number of repeats.

··· On Wed, Jun 20, 2012 at 3:23 AM, Oliver wrote: > Waylon just answered me to this question in another post. > > Here's the link he gave me: > http://opendatakit.org/help/form-design/binding/ > > Down the page there is a section on repeating a group a defined number of > times. There are posts here that state a problem with this function, but it > seems to be fixed, as I just tested it and it worked. > > > On Tuesday, June 19, 2012 9:53:57 AM UTC+2, Irfan wrote: >> >> Dear ODK Group, >> I have couple of question regarding ODK Collect development. >> 1- I want to add "7 Digit, Auto, Unique and Sequential ID Number >> for each interview on PDA" in ODK. >> 2- Is there is any way to control group repeation loop based on a >> Number field, instead of asking option for next repeat. >> It would be highly appreciable if someone send me examples to tackle above >> issues. >> Thank you in advance. >> BR >> Irfan > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Dear Burnette,
I was generating Sequential unique ID for each form in CSPro by following
steps:
1- Generate a text file with a desired number in it.
2- Programe get that number from text file and add 1 for new instance.
3- Once new instance is occured and ID is assigned old text file is
replaced by new file with new number.
4- Same process is continues for every new instance.

Can we do same process in ODK.

··· On Thu, Jun 21, 2012 at 12:07 AM, W. Brunette wrote:

With regards to your first question:

I am not sure how to do sequential numbers because that requires some
sort of state to exist between survey instances and collect currently
does not have the ability to not cross reference information between
instances. Also the numbers could collide across phones or if you
reinstall collect. To ensure that no number collisions happens you
have to have lots of state like how many phones, last install, etc and
I bet there would still be problems. May I suggest using
"InstanceId"s. That way you will also get the benefit of ODK tools
recognizing unique surveys so you don't have double submissions.

http://groups.google.com/group/opendatakit/browse_thread/thread/f77bf8942cdfe182/7c9f83d89b7cb2f6?lnk=gst&q=generating+number+collect#7c9f83d89b7cb2f6

Alternatively you could make each survey into a repeat group and count
the number of surveys and add that to a number but seems dangerous as
you are dependent on one instance and if someone deletes the instance,
or it errors or gets corrupted you could lose everything from that
survey. While I would recommend this approach it is possible to do
what you want using calculate and count the number of repeats.

On Wed, Jun 20, 2012 at 3:23 AM, Oliver hehf.heidelberg@googlemail.com wrote:

Waylon just answered me to this question in another post.

Here's the link he gave me:
http://opendatakit.org/help/form-design/binding/

Down the page there is a section on repeating a group a defined number of
times. There are posts here that state a problem with this function, but
it
seems to be fixed, as I just tested it and it worked.

On Tuesday, June 19, 2012 9:53:57 AM UTC+2, Irfan wrote:

Dear ODK Group,
I have couple of question regarding ODK Collect development.
1- I want to add "7 Digit, Auto, Unique and Sequential ID Number
for each interview on PDA" in ODK.
2- Is there is any way to control group repeation loop based on
a

Number field, instead of asking option for next repeat.
It would be highly appreciable if someone send me examples to tackle
above

issues.
Thank you in advance.
BR
Irfan

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

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

--
Irfan Sarwar Ghumman

Gmail: ighumman@gmail.com
Unicef: isghumman@unicef.org
Skype: irfan.ghumman
Cell: 0092 300 9549598

You can do that but it will require some modifications to the code
base. The code is freely available on our code website
http://code.google.com/p/opendatakit/.

If you do not have the technical ability in your organization to make
the necessary change may I suggest looking at the companies that are
willing to be hired to help on our website.

Waylon

··· On Thu, Jun 21, 2012 at 1:38 PM, Irfan Ghumman wrote: > Dear Burnette, > I was generating Sequential unique ID for each form in CSPro by following > steps: > 1- Generate a text file with a desired number in it. > 2- Programe get that number from text file and add 1 for new instance. > 3- Once new instance is occured and ID is assigned old text file is replaced > by new file with new number. > 4- Same process is continues for every new instance. > > Can we do same process in ODK. > > On Thu, Jun 21, 2012 at 12:07 AM, W. Brunette wrote: >> >> With regards to your first question: >> >> I am not sure how to do sequential numbers because that requires some >> sort of state to exist between survey instances and collect currently >> does not have the ability to not cross reference information between >> instances. Also the numbers could collide across phones or if you >> reinstall collect. To ensure that no number collisions happens you >> have to have lots of state like how many phones, last install, etc and >> I bet there would still be problems. May I suggest using >> "InstanceId"s. That way you will also get the benefit of ODK tools >> recognizing unique surveys so you don't have double submissions. >> >> >> http://groups.google.com/group/opendatakit/browse_thread/thread/f77bf8942cdfe182/7c9f83d89b7cb2f6?lnk=gst&q=generating+number+collect#7c9f83d89b7cb2f6 >> >> Alternatively you could make each survey into a repeat group and count >> the number of surveys and add that to a number but seems dangerous as >> you are dependent on one instance and if someone deletes the instance, >> or it errors or gets corrupted you could lose everything from that >> survey. While I would recommend this approach it is possible to do >> what you want using calculate and count the number of repeats. >> >> On Wed, Jun 20, 2012 at 3:23 AM, Oliver wrote: >> > Waylon just answered me to this question in another post. >> > >> > Here's the link he gave me: >> > http://opendatakit.org/help/form-design/binding/ >> > >> > Down the page there is a section on repeating a group a defined number >> > of >> > times. There are posts here that state a problem with this function, but >> > it >> > seems to be fixed, as I just tested it and it worked. >> > >> > >> > On Tuesday, June 19, 2012 9:53:57 AM UTC+2, Irfan wrote: >> >> >> >> Dear ODK Group, >> >> I have couple of question regarding ODK Collect development. >> >> 1- I want to add "7 Digit, Auto, Unique and Sequential ID >> >> Number >> >> for each interview on PDA" in ODK. >> >> 2- Is there is any way to control group repeation loop based on >> >> a >> >> Number field, instead of asking option for next repeat. >> >> It would be highly appreciable if someone send me examples to tackle >> >> above >> >> issues. >> >> Thank you in advance. >> >> BR >> >> Irfan >> > >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en > > > > > -- > Irfan Sarwar Ghumman > ================= > Gmail: ighumman@gmail.com > Unicef: isghumman@unicef.org > Skype: irfan.ghumman > Cell: 0092 300 9549598 > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en