Indexed-repeat cause ODK stopping working?

Dear All,
I am working on a project in household survey currently and tried the suggested working syntax "indexed-repeat(${name}, ${repeat}, if(${id} != null, ${id}, 1))" to call data entered in previous repeat group. However i got the problem "Sorry, ODK has stopped". No hint given on where is the problem. could you help me out? see the attached. i am using ODK Collect 1.4 (1038) on SAMSUNG Galaxy tab3.

Another question is how to generate a set of non-duplicated random numbers from a set of pre-entered sequential numbers, i.e., the numbers of households. I have the program as attached but some of random numbers are duplicate.

Thanks in advance.
Zaixing

indexed_repeating4.xlsx (14.4 KB)

random23HHselection2.xlsx (14.1 KB)

Hi Zaixing,

Does the form validate with ODK Validate
(http://opendatakit.org/downloads/download-category/validate/)? If you
haven't validated the form, try that first.

Next, upgrade to ODK Collect 1.4.3
(http://opendatakit.org/downloads/download-category/collect or Play
Store). It has lots of bug fixes.

Finally, if the problem still happens, get a stack trace by following
the steps at https://code.google.com/p/opendatakit/wiki/CollectTroubleshooting
and file a bug report at
https://code.google.com/p/opendatakit/issues/list. I find using the
Android SDK is the best way to get traces.

As far as non-duplicated random numbers, I don't think there is an
easy way to do this. I would recommend you generate the household
selection distribution before hand and load it in as baseline data
using http://opendatakit.org/help/form-design/data-preloading/.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Sun, May 11, 2014 at 1:09 AM, zhangzaixing2014@gmail.com wrote:

Dear All,
I am working on a project in household survey currently and tried the suggested working syntax "indexed-repeat(${name}, ${repeat}, if(${id} != null, ${id}, 1))" to call data entered in previous repeat group. However i got the problem "Sorry, ODK has stopped". No hint given on where is the problem. could you help me out? see the attached. i am using ODK Collect 1.4 (1038) on SAMSUNG Galaxy tab3.

Another question is how to generate a set of non-duplicated random numbers from a set of pre-entered sequential numbers, i.e., the numbers of households. I have the program as attached but some of random numbers are duplicate.

Thanks in advance.
Zaixing

--

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


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Zaixing,

Does the form validate with ODK Validate

(http://opendatakit.org/downloads/download-category/validate/)? If you

haven't validated the form, try that first.

Next, upgrade to ODK Collect 1.4.3

(http://opendatakit.org/downloads/download-category/collect or Play

Store). It has lots of bug fixes.

Finally, if the problem still happens, get a stack trace by following

the steps at https://code.google.com/p/opendatakit/wiki/CollectTroubleshooting

and file a bug report at

https://code.google.com/p/opendatakit/issues/list. I find using the

Android SDK is the best way to get traces.

As far as non-duplicated random numbers, I don't think there is an

easy way to do this. I would recommend you generate the household

selection distribution before hand and load it in as baseline data

using http://opendatakit.org/help/form-design/data-preloading/.

Yaw

--

Need ODK services? http://nafundi.com provides form design, server

setup, professional support, and software development for ODK.

Dear All,

I am working on a project in household survey currently and tried the suggested working syntax "indexed-repeat(${name}, ${repeat}, if(${id} != null, ${id}, 1))" to call data entered in previous repeat group. However i got the problem "Sorry, ODK has stopped". No hint given on where is the problem. could you help me out? see the attached. i am using ODK Collect 1.4 (1038) on SAMSUNG Galaxy tab3.

Another question is how to generate a set of non-duplicated random numbers from a set of pre-entered sequential numbers, i.e., the numbers of households. I have the program as attached but some of random numbers are duplicate.

Thanks in advance.

Zaixing

--

--

Post: opendatakit@googlegroups.com

Unsubscribe: opendatakit+unsubscribe@googlegroups.com

Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.

To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Dear Yaw,
thanks so much for your suggestion in using the Validate. it helped me find the bugs with the first problem and it is Ok now.
Will try do work on the second one.
All the best
Zaixing

··· On Monday, May 12, 2014 1:03:12 PM UTC+11, Yaw Anokwa wrote: > On Sun, May 11, 2014 at 1:09 AM, wrote: