Error: choice-name() function with calculate question cause NullPointerException

Hi

Attach my form with the error.

If i remove all calculate questions the error disappears, but my constraint
jr:choice-name( ${QCOLOR} , '${QCOLOR}') ) != '-' does not work.
Why?

Ramón

choice-name_constraint.xls (30.5 KB)

You need to be careful with quoted substitutions like '${QCOLOR}' which, if
${QCOLOR} is /data/QCOLOR, will expand to ' /data/QCOLOR '. I.e., it will
have spaces before and after. You need to edit the generated XML to remove
the extra
spaces. This is one of the bugs / changes that needs to be done to XLSForm.

··· On Tue, Aug 13, 2013 at 9:41 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

Hi

Attach my form with the error.

If i remove all calculate questions the error disappears, but my
constraint jr:choice-name( ${QCOLOR} , '${QCOLOR}') ) != '-' does not
work.
Why?

Ramón

--

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/groups/opt_out.

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