How to understand the parsing result

Dear all,
I parsed my form with Validate. but i got the following message. could you tell me what to do with it?
Parsing form…
Title: “MIS_full_questionnaire1”

Xfrom parsing completed! See above for any warnings.

Dynamic select question has no choices! [instance(wards)/root/item]. If this occurs while filling out a form (and not while saving an incomplete form), the filter condition may have eliminated all the choices. Is that what you intended?

Regards
Zaixing

This is OK. Most errors or warnings will appear above this line:

Xfrom parsing completed! See above for any warnings.

The warning:

Dynamic select question has no choices! [instance(wards)/root/item]. If
this occurs while filling out a form (and not while saving an incomplete
form), the filter condition may have eliminated all the choices. Is that
what you intended?

means that when the form was scanned (without having entered any values on
any of the prompts), it reached a select one / select multiple question
that used a cascading select involving instance(wards)/root/item, and,
during the evaluation of the filter expression for the set of values to
display, all of the possible choices were discarded, leaving an empty set
of choices to display in the selection.

··· On Tue, May 13, 2014 at 3:43 AM, wrote:

Dear all,
I parsed my form with Validate. but i got the following message. could you
tell me what to do with it?
Parsing form…
Title: “MIS_full_questionnaire1”

Xfrom parsing completed! See above for any warnings.

Dynamic select question has no choices! [instance(wards)/root/item]. If
this occurs while filling out a form (and not while saving an incomplete
form), the filter condition may have eliminated all the choices. Is that
what you intended?

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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

This is OK. Most errors or warnings will appear above this line:

Xfrom parsing completed! See above for any warnings.

The warning:

Dynamic select question has no choices! [instance(wards)/root/item]. If
this occurs while filling out a form (and not while saving an
incomplete form), the filter condition may have eliminated all the
choices. Is that what you intended?

means that when the form was scanned (without having entered any values on any of the prompts), it reached a select one / select multiple question that used a cascading select involving instance(wards)/root/item, and, during the evaluation of the filter expression for the set of values to display, all of the possible choices were discarded, leaving an empty set of choices to display in the selection.

Dear all,

I parsed my form with Validate. but i got the following message. could you tell me what to do with it?

Parsing form…

Title: “MIS_full_questionnaire1”

Xfrom parsing completed! See above for any warnings.

Dynamic select question has no choices! [instance(wards)/root/item]. If this occurs while filling out a form (and not while saving an incomplete form), the filter condition may have eliminated all the choices. Is that what you intended?

Regards

Zaixing

--

--

Post: opend...@googlegroups.com

Unsubscribe: opendatakit...@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...@googlegroups.com.

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

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

Dear Mitch,
thanks so much for the explanation. however could you tell me the causes that make "all of the possible choices were discarded, leaving an empty set of choices to display in the selection."?
I uploaded the to Samsung Galaxy Tab3. The first time I selected a EA number was Ok. But when I tried second EA_number, i encountered problem and cannot proceed. the prompt are "Internal error: step to prompt failed" (converted by Enketo). And "“XPath evaluation: type mismatch nodeset has more than one node [/MIS0_SLB_2014_HH_Updating/HH_updating[1]/EA_updating[1]/ward[1]; /MIS0_SLB_2014_HH_Updating/HH_updating[1]/EA_updating[2]/ward[1]]; can not convert to value" (converted by xlsform.exe). Please find the attached form.
Thank you very much in advance.
Zaixing

onlyEA_enketo.xls (74 KB)

onlyEA_enketo.xml (56.7 KB)

··· On Wednesday, May 14, 2014 4:33:26 AM UTC+11, Mitch Sundt wrote: > On Tue, May 13, 2014 at 3:43 AM, wrote:

This is a different issue -- you are using a repeat group in your form.

In this case, if you want to refer to a value within a repeat group, you
cannot use ${q_name}

You must use relative accessing --

. refers to the current question
.. refers to the group within which the current question resides.

So if you have a 'q_name' field that you want to access that is within the
same group as the current question, you must use:

../q_name

If you use ${q_name} in a repeat group, the second time through the repeat
group, the value of ${q_name} will be the list of values from both the
first and second iteration of the repeat group. Using relative accessing
allows you to access the values from the current iteration of the repeat.

For more complex accessing, you will need to use indexed-repeat(...)

And, if you are trying to make a relative reference within a filter
condition for a cascading select, you will likely need to prefix the
relative access (e.g., "../q_name") with current()/ (i.e.,
"current()/../q_name").

··· On Tue, May 13, 2014 at 6:49 PM, wrote:

On Wednesday, May 14, 2014 4:33:26 AM UTC+11, Mitch Sundt wrote:

This is OK. Most errors or warnings will appear above this line:

Xfrom parsing completed! See above for any warnings.

The warning:

Dynamic select question has no choices! [instance(wards)/root/item]. If
this occurs while filling out a form (and not while saving an
incomplete form), the filter condition may have eliminated all the
choices. Is that what you intended?

means that when the form was scanned (without having entered any values
on any of the prompts), it reached a select one / select multiple question
that used a cascading select involving instance(wards)/root/item, and,
during the evaluation of the filter expression for the set of values to
display, all of the possible choices were discarded, leaving an empty set
of choices to display in the selection.

On Tue, May 13, 2014 at 3:43 AM, zhangzai...@gmail.com wrote:

Dear all,

I parsed my form with Validate. but i got the following message. could
you tell me what to do with it?

Parsing form…

Title: “MIS_full_questionnaire1”

Xfrom parsing completed! See above for any warnings.

Dynamic select question has no choices! [instance(wards)/root/item]. If
this occurs while filling out a form (and not while saving an incomplete
form), the filter condition may have eliminated all the choices. Is that
what you intended?

Regards

Zaixing

--

--

Post: opend...@googlegroups.com

Unsubscribe: opendatakit...@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...@googlegroups.com.

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

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

Dear Mitch,
thanks so much for the explanation. however could you tell me the causes
that make "all of the possible choices were discarded, leaving an empty set
of choices to display in the selection."?
I uploaded the to Samsung Galaxy Tab3. The first time I selected a EA
number was Ok. But when I tried second EA_number, i encountered problem and
cannot proceed. the prompt are "Internal error: step to prompt failed"
(converted by Enketo). And "“XPath evaluation: type mismatch nodeset has
more than one node
[/MIS0_SLB_2014_HH_Updating/HH_updating[1]/EA_updating[1]/ward[1];
/MIS0_SLB_2014_HH_Updating/HH_updating[1]/EA_updating[2]/ward[1]]; can not
convert to value" (converted by xlsform.exe). Please find the attached form.
Thank you very much 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.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com