Error: Problem in choice-name() function with Cascading Select: NullPointerException

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

choice-name1.xls (25 KB)

Ramon,

This form works in SurveyCTO's Collect, and it should have been fixed in
ODK Collect as per issue #854 (
https://code.google.com/p/opendatakit/issues/detail?id=854). Are you using
the latest version of Collect? You can find v1.4 rev. 1033 at
https://code.google.com/p/opendatakit/downloads/list.

Best,

Chris

··· On Wed, Aug 7, 2013 at 12:31 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

--

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.

Yes I'm using the latest version ODK Collect v1.4 rev. 1033

··· 2013/8/7 Christopher Robert

Ramon,

This form works in SurveyCTO's Collect, and it should have been fixed in
ODK Collect as per issue #854 (
https://code.google.com/p/opendatakit/issues/detail?id=854). Are you
using the latest version of Collect? You can find v1.4 rev. 1033 at
https://code.google.com/p/opendatakit/downloads/list.

Best,

Chris

On Wed, Aug 7, 2013 at 12:31 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Atte
Ramón De la Cruz L.

Hi Ramon,

I'm very sorry, but issue 854 wasn't listed as included in the latest ODK
Collect. I presume that it will be in the next release, but I'll let Mitch
or another core team member speak to that.

I must have created the confusion in my earlier reply to Maria, in which I
mentioned jr:choice-name() and linked to issue 854. I implied that it was
fixed in the latest ODK Collect, but it seems that I jumped the gun. Very
sorry for the confusion, but I do presume that jr:choice-name() will be
working soon!

Best,

Chris

··· On Wed, Aug 7, 2013 at 9:40 AM, Ramon de la Cruz Lazaro <rmdlazaro@gmail.com wrote:

Yes I'm using the latest version ODK Collect v1.4 rev. 1033

2013/8/7 Christopher Robert crobert@surveycto.com

Ramon,

This form works in SurveyCTO's Collect, and it should have been fixed in
ODK Collect as per issue #854 (
https://code.google.com/p/opendatakit/issues/detail?id=854). Are you
using the latest version of Collect? You can find v1.4 rev. 1033 at
https://code.google.com/p/opendatakit/downloads/list.

Best,

Chris

On Wed, Aug 7, 2013 at 12:31 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.

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

--
Atte
Ramón De la Cruz L.

--

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.

OK. I have just updated the ODK Validate version used by XLSForm.
Everything should now work.

Also just uploaded the stand-alone ODK Validate 1.4 to the downloads page
(which includes this fix).

ODK Collect 1.4 has these changes, it was just that XLSForm did not use an
updated ODK Validate, and would not accept the form.

Mitch

··· On Wed, Aug 7, 2013 at 7:24 AM, Christopher Robert wrote:

Hi Ramon,

I'm very sorry, but issue 854 wasn't listed as included in the latest ODK
Collect. I presume that it will be in the next release, but I'll let Mitch
or another core team member speak to that.

I must have created the confusion in my earlier reply to Maria, in which I
mentioned jr:choice-name() and linked to issue 854. I implied that it was
fixed in the latest ODK Collect, but it seems that I jumped the gun. Very
sorry for the confusion, but I do presume that jr:choice-name() will be
working soon!

Best,

Chris

On Wed, Aug 7, 2013 at 9:40 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

Yes I'm using the latest version ODK Collect v1.4 rev. 1033

2013/8/7 Christopher Robert crobert@surveycto.com

Ramon,

This form works in SurveyCTO's Collect, and it should have been fixed in
ODK Collect as per issue #854 (
https://code.google.com/p/opendatakit/issues/detail?id=854). Are you
using the latest version of Collect? You can find v1.4 rev. 1033 at
https://code.google.com/p/opendatakit/downloads/list.

Best,

Chris

On Wed, Aug 7, 2013 at 12:31 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.

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

--
Atte
Ramón De la Cruz L.

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

--

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

Thanks, Mitch! And sorry to have created confusion.

Ramon, I hope that it works for you now?

Chris

··· On Wed, Aug 7, 2013 at 3:46 PM, Mitch Sundt wrote:

OK. I have just updated the ODK Validate version used by XLSForm.
Everything should now work.

Also just uploaded the stand-alone ODK Validate 1.4 to the downloads page
(which includes this fix).

ODK Collect 1.4 has these changes, it was just that XLSForm did not use an
updated ODK Validate, and would not accept the form.

Mitch

On Wed, Aug 7, 2013 at 7:24 AM, Christopher Robert <chrislrobert@gmail.com wrote:

Hi Ramon,

I'm very sorry, but issue 854 wasn't listed as included in the latest ODK
Collect. I presume that it will be in the next release, but I'll let Mitch
or another core team member speak to that.

I must have created the confusion in my earlier reply to Maria, in which
I mentioned jr:choice-name() and linked to issue 854. I implied that it was
fixed in the latest ODK Collect, but it seems that I jumped the gun. Very
sorry for the confusion, but I do presume that jr:choice-name() will be
working soon!

Best,

Chris

On Wed, Aug 7, 2013 at 9:40 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

Yes I'm using the latest version ODK Collect v1.4 rev. 1033

2013/8/7 Christopher Robert crobert@surveycto.com

Ramon,

This form works in SurveyCTO's Collect, and it should have been fixed
in ODK Collect as per issue #854 (
https://code.google.com/p/opendatakit/issues/detail?id=854). Are you
using the latest version of Collect? You can find v1.4 rev. 1033 at
https://code.google.com/p/opendatakit/downloads/list.

Best,

Chris

On Wed, Aug 7, 2013 at 12:31 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.

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

--
Atte
Ramón De la Cruz L.

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

--

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

--

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.

Ok, I tested. The error continues both "ODK Collect 1034.apk rev 1.4" and
"1.4 for ODK ODK Collect Validate v1.4 thru v1.2.jar"

Attached my test examples

Ramon

choice-name1.xls (25 KB)

choice-name1.xml (8.49 KB)

··· 2013/8/7 Christopher Robert

Thanks, Mitch! And sorry to have created confusion.

Ramon, I hope that it works for you now?

Chris

On Wed, Aug 7, 2013 at 3:46 PM, Mitch Sundt mitchellsundt@gmail.comwrote:

OK. I have just updated the ODK Validate version used by XLSForm.
Everything should now work.

Also just uploaded the stand-alone ODK Validate 1.4 to the downloads page
(which includes this fix).

ODK Collect 1.4 has these changes, it was just that XLSForm did not use
an updated ODK Validate, and would not accept the form.

Mitch

On Wed, Aug 7, 2013 at 7:24 AM, Christopher Robert < chrislrobert@gmail.com> wrote:

Hi Ramon,

I'm very sorry, but issue 854 wasn't listed as included in the latest
ODK Collect. I presume that it will be in the next release, but I'll let
Mitch or another core team member speak to that.

I must have created the confusion in my earlier reply to Maria, in which
I mentioned jr:choice-name() and linked to issue 854. I implied that it was
fixed in the latest ODK Collect, but it seems that I jumped the gun. Very
sorry for the confusion, but I do presume that jr:choice-name() will be
working soon!

Best,

Chris

On Wed, Aug 7, 2013 at 9:40 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

Yes I'm using the latest version ODK Collect v1.4 rev. 1033

2013/8/7 Christopher Robert crobert@surveycto.com

Ramon,

This form works in SurveyCTO's Collect, and it should have been fixed
in ODK Collect as per issue #854 (
https://code.google.com/p/opendatakit/issues/detail?id=854). Are you
using the latest version of Collect? You can find v1.4 rev. 1033 at
https://code.google.com/p/opendatakit/downloads/list.

Best,

Chris

On Wed, Aug 7, 2013 at 12:31 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.

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

--
Atte
Ramón De la Cruz L.

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

--

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

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Atte
Ramón De la Cruz L.

OK. I've uploaded a new ODK Validate and ODK Collect (rev 1035). Try them.

There is a fix in the JR layer for this, just pushed.

The root cause was that your form placed all the selection choices into
external read-only instance blocks within the XML, rather than in-lining
the values. These external instances are called dynamic choice lists
because filters can be applied to them. The jr:choice-name() function
assumed the list of choices was always static, and never dynamic. The
change is to allow dynamic lists.

HOWEVER, this will ONLY work if there are no filters on the choice list
because the context in which to evaluate any filters is not available. If
filters are used, they cannot be filters that reference elements within
repeat groups. If they do, the results will either be incorrect or lead to
Forced Close events. I.e., if you are using jr:choice-name() to access the
name of a choice that is within a cascading select, it will not work.

Mitch

··· On Wed, Aug 7, 2013 at 1:45 PM, Ramon de la Cruz Lazaro <rmdlazaro@gmail.com wrote:

Ok, I tested. The error continues both "ODK Collect 1034.apk rev 1.4" and
"1.4 for ODK ODK Collect Validate v1.4 thru v1.2.jar"

Attached my test examples

Ramon

2013/8/7 Christopher Robert chrislrobert@gmail.com

Thanks, Mitch! And sorry to have created confusion.

Ramon, I hope that it works for you now?

Chris

On Wed, Aug 7, 2013 at 3:46 PM, Mitch Sundt mitchellsundt@gmail.comwrote:

OK. I have just updated the ODK Validate version used by XLSForm.
Everything should now work.

Also just uploaded the stand-alone ODK Validate 1.4 to the downloads
page (which includes this fix).

ODK Collect 1.4 has these changes, it was just that XLSForm did not use
an updated ODK Validate, and would not accept the form.

Mitch

On Wed, Aug 7, 2013 at 7:24 AM, Christopher Robert < chrislrobert@gmail.com> wrote:

Hi Ramon,

I'm very sorry, but issue 854 wasn't listed as included in the latest
ODK Collect. I presume that it will be in the next release, but I'll let
Mitch or another core team member speak to that.

I must have created the confusion in my earlier reply to Maria, in
which I mentioned jr:choice-name() and linked to issue 854. I implied that
it was fixed in the latest ODK Collect, but it seems that I jumped the gun.
Very sorry for the confusion, but I do presume that jr:choice-name() will
be working soon!

Best,

Chris

On Wed, Aug 7, 2013 at 9:40 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

Yes I'm using the latest version ODK Collect v1.4 rev. 1033

2013/8/7 Christopher Robert crobert@surveycto.com

Ramon,

This form works in SurveyCTO's Collect, and it should have been fixed
in ODK Collect as per issue #854 (
https://code.google.com/p/opendatakit/issues/detail?id=854). Are you
using the latest version of Collect? You can find v1.4 rev. 1033 at
https://code.google.com/p/opendatakit/downloads/list.

Best,

Chris

On Wed, Aug 7, 2013 at 12:31 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

--

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.

--

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 a topic in
the Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.

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

--
Atte
Ramón De la Cruz L.

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

--

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

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Atte
Ramón De la Cruz L.

--

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

It works. Thank you very much, Mitch.

Ramon

··· 2013/8/8 Mitch Sundt

OK. I've uploaded a new ODK Validate and ODK Collect (rev 1035). Try them.

There is a fix in the JR layer for this, just pushed.

The root cause was that your form placed all the selection choices into
external read-only instance blocks within the XML, rather than in-lining
the values. These external instances are called dynamic choice lists
because filters can be applied to them. The jr:choice-name() function
assumed the list of choices was always static, and never dynamic. The
change is to allow dynamic lists.

HOWEVER, this will ONLY work if there are no filters on the choice list
because the context in which to evaluate any filters is not available. If
filters are used, they cannot be filters that reference elements within
repeat groups. If they do, the results will either be incorrect or lead to
Forced Close events. I.e., if you are using jr:choice-name() to access the
name of a choice that is within a cascading select, it will not work.

Mitch

On Wed, Aug 7, 2013 at 1:45 PM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

Ok, I tested. The error continues both "ODK Collect 1034.apk rev 1.4" and
"1.4 for ODK ODK Collect Validate v1.4 thru v1.2.jar"

Attached my test examples

Ramon

2013/8/7 Christopher Robert chrislrobert@gmail.com

Thanks, Mitch! And sorry to have created confusion.

Ramon, I hope that it works for you now?

Chris

On Wed, Aug 7, 2013 at 3:46 PM, Mitch Sundt mitchellsundt@gmail.comwrote:

OK. I have just updated the ODK Validate version used by XLSForm.
Everything should now work.

Also just uploaded the stand-alone ODK Validate 1.4 to the downloads
page (which includes this fix).

ODK Collect 1.4 has these changes, it was just that XLSForm did not use
an updated ODK Validate, and would not accept the form.

Mitch

On Wed, Aug 7, 2013 at 7:24 AM, Christopher Robert < chrislrobert@gmail.com> wrote:

Hi Ramon,

I'm very sorry, but issue 854 wasn't listed as included in the latest
ODK Collect. I presume that it will be in the next release, but I'll let
Mitch or another core team member speak to that.

I must have created the confusion in my earlier reply to Maria, in
which I mentioned jr:choice-name() and linked to issue 854. I implied that
it was fixed in the latest ODK Collect, but it seems that I jumped the gun.
Very sorry for the confusion, but I do presume that jr:choice-name() will
be working soon!

Best,

Chris

On Wed, Aug 7, 2013 at 9:40 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

Yes I'm using the latest version ODK Collect v1.4 rev. 1033

2013/8/7 Christopher Robert crobert@surveycto.com

Ramon,

This form works in SurveyCTO's Collect, and it should have been
fixed in ODK Collect as per issue #854 (
https://code.google.com/p/opendatakit/issues/detail?id=854). Are
you using the latest version of Collect? You can find v1.4 rev. 1033 at
https://code.google.com/p/opendatakit/downloads/list.

Best,

Chris

On Wed, Aug 7, 2013 at 12:31 AM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

See attached form.

Error evaluating "/choice-name1/SEC1X/rSEC1X/cQHPARENA"

Fails in jr:choice-name(${QHPARENC},'${QHPARENC}')

This is used within a repeat group, and ${QHPARENC} is an element within that repeat group.

I've created an issue for this: https://code.google.com/p/opendatakit/issues/detail?id=885

--

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.

--

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 a topic in
the Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.

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

--
Atte
Ramón De la Cruz L.

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

--

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

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Atte
Ramón De la Cruz L.

--

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

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/nhrorn30A8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Atte
Ramón De la Cruz L.