Limitation of conditions in relevant (xml form)

Hey there, I've done around 10 surveys using ODK and by far the support and
the working of the tools have been amazing. Thanks to the ODK team.

I am, however, facing a problem in a nutrition survey. I've two questions
inside a repeat group (a roster type). One of the questions is a list with
around 90 items and the following question is a multiple select which
should be prompted relevant to the item in the list selected. The multiple
question should be asked to half of the items selected from the list
question. My relevant in the multiple question is plain simple (only long )
and sth. like

relevant="(/data/Module11/Module11_Section1/ITEMLIST != 'OTHERGR' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERPUL' and
/data/Module11/Module11_Section1/ITEMLIST != 'EGGS' and
/data/Module11/Module11_Section1/ITEMLIST != 'MILK' and
/data/Module11/Module11_Section1/ITEMLIST != 'CONDIMILK' and
/data/Module11/Module11_Section1/ITEMLIST != 'BABYMILK' and
/data/Module11/Module11_Section1/ITEMLIST != 'CURD' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERMILK' and
/data/Module11/Module11_Section1/ITEMLIST != 'GHEE' and
/data/Module11/Module11_Section1/ITEMLIST != 'VEGOIL' and
/data/Module11/Module11_Section1/ITEMLIST != 'MUSTOIL' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHEROIL' and
/data/Module11/Module11_Section1/ITEMLIST != 'POTATO' and
/data/Module11/Module11_Section1/ITEMLIST != 'COLOCA' and
/data/Module11/Module11_Section1/ITEMLIST != 'ONION' and
/data/Module11/Module11_Section1/ITEMLIST != 'CAULCABB' and
/data/Module11/Module11_Section1/ITEMLIST != 'TOMATO' and
/data/Module11/Module11_Section1/ITEMLIST != 'GLV' and
/data/Module11/Module11_Section1/ITEMLIST != 'POINTGOU' and
/data/Module11/Module11_Section1/ITEMLIST != 'BITTGOU' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERVEG' and
/data/Module11/Module11_Section1/ITEMLIST != 'BANANA' and
/data/Module11/Module11_Section1/ITEMLIST != 'CITR' and
/data/Module11/Module11_Section1/ITEMLIST != 'MANGO' and
/data/Module11/Module11_Section1/ITEMLIST != 'APP' and
/data/Module11/Module11_Section1/ITEMLIST != 'PINEAPP' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERFRU' and
/data/Module11/Module11_Section1/ITEMLIST != 'FRIEDFRU' and
/data/Module11/Module11_Section1/ITEMLIST != 'FISH' and
/data/Module11/Module11_Section1/ITEMLIST != 'MUTT' and
/data/Module11/Module11_Section1/ITEMLIST != 'BUFF' and
/data/Module11/Module11_Section1/ITEMLIST != 'CHICK' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERMEAT' and
/data/Module11/Module11_Section1/ITEMLIST != 'SALT' and
/data/Module11/Module11_Section1/ITEMLIST != 'SUGAR' and
/data/Module11/Module11_Section1/ITEMLIST != 'GUR' and
/data/Module11/Module11_Section1/ITEMLIST != 'GUR' and
/data/Module11/Module11_Section1/ITEMLIST != 'SWEETS' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERSWE' and
/data/Module11/Module11_Section1/ITEMLIST != 'TEA' and
/data/Module11/Module11_Section1/ITEMLIST != 'COFF' and
/data/Module11/Module11_Section1/ITEMLIST != 'FRUITJUI' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERBEV' and
/data/Module11/Module11_Section1/ITEMLIST != 'WINE' and
/data/Module11/Module11_Section1/ITEMLIST != 'GIN' and
/data/Module11/Module11_Section1/ITEMLIST != 'BEER' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERALC' and
/data/Module11/Module11_Section1/ITEMLIST != 'OUTHOME' and
/data/Module11/Module11_Section1/ITEMLIST != 'BREAD' and
/data/Module11/Module11_Section1/ITEMLIST != 'PAPAYA')

Here, without the last condition of 'PAPAYA', the relevant is working fine
but when I add the last condition, the app (ODK collect) crashes.The crash
in itself is a little odd as well. The application runs smoothly when i
first open the blank form. The relevant works as well but when i fill the
second instance of the same form, the app crashes (Unfortunately, APPNAME
has stopped). Again after removing the last condition in the relevant, I
can fill any instances of the form without any problem.I've been doing some
searches but unfortunately can find nothing.

Have anyone gone through this already? I really need a lead on how to go
about it. Is it a limitation of conditions in relevant?

You are running out of device memory. Upgrade to the latest version of
Collect and break up the relevance into smaller calculation questions.

Yaw

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

On Mon, Jul 13, 2015 at 4:24 AM, ChangbangMobs chayan.s@ptas.com.np wrote:

Hey there, I've done around 10 surveys using ODK and by far the support
and the working of the tools have been amazing. Thanks to the ODK team.

I am, however, facing a problem in a nutrition survey. I've two questions
inside a repeat group (a roster type). One of the questions is a list with
around 90 items and the following question is a multiple select which
should be prompted relevant to the item in the list selected. The multiple
question should be asked to half of the items selected from the list
question. My relevant in the multiple question is plain simple (only long )
and sth. like

relevant="(/data/Module11/Module11_Section1/ITEMLIST != 'OTHERGR' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERPUL' and
/data/Module11/Module11_Section1/ITEMLIST != 'EGGS' and
/data/Module11/Module11_Section1/ITEMLIST != 'MILK' and
/data/Module11/Module11_Section1/ITEMLIST != 'CONDIMILK' and
/data/Module11/Module11_Section1/ITEMLIST != 'BABYMILK' and
/data/Module11/Module11_Section1/ITEMLIST != 'CURD' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERMILK' and
/data/Module11/Module11_Section1/ITEMLIST != 'GHEE' and
/data/Module11/Module11_Section1/ITEMLIST != 'VEGOIL' and
/data/Module11/Module11_Section1/ITEMLIST != 'MUSTOIL' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHEROIL' and
/data/Module11/Module11_Section1/ITEMLIST != 'POTATO' and
/data/Module11/Module11_Section1/ITEMLIST != 'COLOCA' and
/data/Module11/Module11_Section1/ITEMLIST != 'ONION' and
/data/Module11/Module11_Section1/ITEMLIST != 'CAULCABB' and
/data/Module11/Module11_Section1/ITEMLIST != 'TOMATO' and
/data/Module11/Module11_Section1/ITEMLIST != 'GLV' and
/data/Module11/Module11_Section1/ITEMLIST != 'POINTGOU' and
/data/Module11/Module11_Section1/ITEMLIST != 'BITTGOU' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERVEG' and
/data/Module11/Module11_Section1/ITEMLIST != 'BANANA' and
/data/Module11/Module11_Section1/ITEMLIST != 'CITR' and
/data/Module11/Module11_Section1/ITEMLIST != 'MANGO' and
/data/Module11/Module11_Section1/ITEMLIST != 'APP' and
/data/Module11/Module11_Section1/ITEMLIST != 'PINEAPP' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERFRU' and
/data/Module11/Module11_Section1/ITEMLIST != 'FRIEDFRU' and
/data/Module11/Module11_Section1/ITEMLIST != 'FISH' and
/data/Module11/Module11_Section1/ITEMLIST != 'MUTT' and
/data/Module11/Module11_Section1/ITEMLIST != 'BUFF' and
/data/Module11/Module11_Section1/ITEMLIST != 'CHICK' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERMEAT' and
/data/Module11/Module11_Section1/ITEMLIST != 'SALT' and
/data/Module11/Module11_Section1/ITEMLIST != 'SUGAR' and
/data/Module11/Module11_Section1/ITEMLIST != 'GUR' and
/data/Module11/Module11_Section1/ITEMLIST != 'GUR' and
/data/Module11/Module11_Section1/ITEMLIST != 'SWEETS' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERSWE' and
/data/Module11/Module11_Section1/ITEMLIST != 'TEA' and
/data/Module11/Module11_Section1/ITEMLIST != 'COFF' and
/data/Module11/Module11_Section1/ITEMLIST != 'FRUITJUI' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERBEV' and
/data/Module11/Module11_Section1/ITEMLIST != 'WINE' and
/data/Module11/Module11_Section1/ITEMLIST != 'GIN' and
/data/Module11/Module11_Section1/ITEMLIST != 'BEER' and
/data/Module11/Module11_Section1/ITEMLIST != 'OTHERALC' and
/data/Module11/Module11_Section1/ITEMLIST != 'OUTHOME' and
/data/Module11/Module11_Section1/ITEMLIST != 'BREAD' and
/data/Module11/Module11_Section1/ITEMLIST != 'PAPAYA')

Here, without the last condition of 'PAPAYA', the relevant is working fine
but when I add the last condition, the app (ODK collect) crashes.The crash
in itself is a little odd as well. The application runs smoothly when i
first open the blank form. The relevant works as well but when i fill the
second instance of the same form, the app crashes (Unfortunately, APPNAME
has stopped). Again after removing the last condition in the relevant, I
can fill any instances of the form without any problem.I've been doing some
searches but unfortunately can find nothing.

Have anyone gone through this already? I really need a lead on how to go
about it. Is it a limitation of conditions in relevant?

--

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.