[ODK Community] bug on repeatible

Laura,

Not seeing a bug. The repeating group roster_7 is relevant if
RadioButton_5 is 'Yes'. That's why you get the pop up that asks to
create the group. Once the group is created, the items in the group
are relevant and SingleLine0 appears in the saved XML.

Yaw

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

On Thu, May 8, 2014 at 2:41 AM, gnappa156@gmail.com wrote:

Hi everyone,

I found this bug using odk collect version 1.4 on Android 2.2, 4.1, 4.2, 4.3.
When I have a radio button with a visibility condition on a repeatable which has 2 spinner as first elements.

1)Open the form from Fill Blank Form button
2)Compile the first page
3)Swipe from the first an go to second page (Don't compile the radio)
3)Exit saving the Form
4)Reopen the form from Edit Saved Form button
5)Go to page 2
6)Select YES in the Radio Button
7)Swipe
8)Popup appears (and that is wrong!) and singlelines inside the form are not shown

Attached the xform.

The problem is not in javarosa library, because the deserialized xml arrives already corrupted.

Hope someone can help.

Laura

--

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.

If labels inside The repeatible won't disappear it could not be a bug, but they do, ...so it is

On the first time through a blank form, if you select yes, you get no pop up.

But if you save at the select (with no answer selected), re-open the
saved form, select yes, you get the pop up.

Is this the behavior you are concerned about?

Yaw

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

On Thu, May 8, 2014 at 7:58 AM, Marco Giorgi ma.giorgi@gmail.com wrote:

If labels inside The repeatible won't disappear it could not be a bug, but they do, ...so it is

--

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.

I was concerning in both, the pop up, and single line. For the first it is ok if you say it is just a different behaviour, but for the single line as you can see, in the screenshot attached, there is a problem:

the singleline0, below the "SecondoDrop", it is not shown. This is a bug.

Laura

··· Il giorno giovedì 8 maggio 2014 17:13:38 UTC+2, Yaw Anokwa ha scritto: > On the first time through a blank form, if you select yes, you get no pop up. > > > > But if you save at the select (with no answer selected), re-open the > > saved form, select yes, you get the pop up. > > > > Is this the behavior you are concerned about? > > > > Yaw > > -- > > Need ODK services? http://nafundi.com provides form design, server > > setup, professional support, and software development for ODK. > > > > On Thu, May 8, 2014 at 7:58 AM, Marco Giorgi wrote: > > > If labels inside The repeatible won't disappear it could not be a bug, but they do, ...so it is > > > > > > -- > > > -- > > > 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.

Laura,

I believe the reason for this is behavior is that SingleLine0 is (and
the group that it's in are) not relevant unless RadioButton_5 is yes.
So when you save the form with RadioButton_5 as blank, JavaROSA throws
away any default values you've stored in SingleLine0 because those
values are not relevant. When you re-load the form, it loads that
saved instance with SingleLine0 thrown away and shows you that.

I think JavaROSA is doing what it was designed to do. It's not a bug,
per se, but it is subtle and dangerous behavior that we should
probably change. No idea how hard it'll be to fix, but in the
meantime, if you want something to stick around when you save, you
have to make it relevant. In this case, if you want the default value
of SingleLine0 to stick around, you need to make it relevant
regardless of what is selected in RadioButton_5.

I've filed the issue at
https://code.google.com/p/opendatakit/issues/detail?id=999. No ETA.

Yaw

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

On Thu, May 8, 2014 at 9:16 AM, gnappa156@gmail.com wrote:

I was concerning in both, the pop up, and single line. For the first it is ok if you say it is just a different behaviour, but for the single line as you can see, in the screenshot attached, there is a problem:

the singleline0, below the "SecondoDrop", it is not shown. This is a bug.

Laura

Il giorno giovedì 8 maggio 2014 17:13:38 UTC+2, Yaw Anokwa ha scritto:

On the first time through a blank form, if you select yes, you get no pop up.

But if you save at the select (with no answer selected), re-open the

saved form, select yes, you get the pop up.

Is this the behavior you are concerned about?

Yaw

--

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

setup, professional support, and software development for ODK.

On Thu, May 8, 2014 at 7:58 AM, Marco Giorgi ma.giorgi@gmail.com wrote:

If labels inside The repeatible won't disappear it could not be a bug, but they do, ...so it is

--

--

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.

--

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.

Thanks Yaw,

This is exactly the issue we're facing, Thanks for your support.
We are trying to find a good way to fix it in the code.
If we found it I will update you.

Regards,
Laura

··· 2014-05-08 18:40 GMT+02:00 Yaw Anokwa :

Laura,

I believe the reason for this is behavior is that SingleLine0 is (and
the group that it's in are) not relevant unless RadioButton_5 is yes.
So when you save the form with RadioButton_5 as blank, JavaROSA throws
away any default values you've stored in SingleLine0 because those
values are not relevant. When you re-load the form, it loads that
saved instance with SingleLine0 thrown away and shows you that.

I think JavaROSA is doing what it was designed to do. It's not a bug,
per se, but it is subtle and dangerous behavior that we should
probably change. No idea how hard it'll be to fix, but in the
meantime, if you want something to stick around when you save, you
have to make it relevant. In this case, if you want the default value
of SingleLine0 to stick around, you need to make it relevant
regardless of what is selected in RadioButton_5.

I've filed the issue at
https://code.google.com/p/opendatakit/issues/detail?id=999. No ETA.

Yaw

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

On Thu, May 8, 2014 at 9:16 AM, gnappa156@gmail.com wrote:

I was concerning in both, the pop up, and single line. For the first it
is ok if you say it is just a different behaviour, but for the single line
as you can see, in the screenshot attached, there is a problem:

the singleline0, below the "SecondoDrop", it is not shown. This is a bug.

Laura

Il giorno giovedì 8 maggio 2014 17:13:38 UTC+2, Yaw Anokwa ha scritto:

On the first time through a blank form, if you select yes, you get no
pop up.

But if you save at the select (with no answer selected), re-open the

saved form, select yes, you get the pop up.

Is this the behavior you are concerned about?

Yaw

--

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

setup, professional support, and software development for ODK.

On Thu, May 8, 2014 at 7:58 AM, Marco Giorgi ma.giorgi@gmail.com wrote:

If labels inside The repeatible won't disappear it could not be a
bug, but they do, ...so it is

--

--

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.

--

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.

--

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/8ZOiQWeGpnU/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/d/optout.