Looped group ignoring "field-list" attribute

Hi

Small issue with ODK Collect and the display of looped groups.

This works fine, displaying everything in the group on one screen:


...fields here...

While the following displays one field per screen:



...fields here...

Out of curiosity, I moved the appearance="field-list" attribute to
instead of and tried that. It parsed, but did not
solve the problem.

Anybody else have this problem or a solution to it?

Thanks

It is hard to tell without seeing the entire form, but if you are
trying to repeat a group of questions, then they are better nested
that way, namely, group inside the repeat. You can imagine that the
semantics and UI of a repeat with another prompt (outside of the
repeat) grouped together would not be easy to define.

Gaetano

··· On Mon, Nov 7, 2011 at 11:20 AM, Matt Beals wrote: > Hi > > Small issue with ODK Collect and the display of looped groups. > > This works fine, displaying everything in the group on one screen: > > > ...fields here... > > > While the following displays one field per screen: > > > > ...fields here... > > > > Out of curiosity, I moved the appearance="field-list" attribute to > instead of and tried that. It parsed, but did not > solve the problem. > > Anybody else have this problem or a solution to it? > > Thanks >

I absolutely agree that nesting inside seems more
sane. My knowledge of XForms is not great, so I've been using the
suggested form building tools. The structure above, with the
inside the , was the output of both ODK Build and XLS2XForm
when creating looped groups. It also seems to be the preferred format
for ODK Collect.

Generated by ODK Build by creating a group and checking "Looped" and
"Display On One Screen". XLS2XForms generates something similar with
"begin looped group", and "field-list" in the appearance column.
Collect ignores the 'appearance="field-list"' attribute on the
, and displays each input field on a new screen.

My manual edit to put inside , as per Gaetano's
suggestion.
This displays correctly, but the popup dialog reads 'Add a new "null"
group?' I suspect this is because has no .

Both upload fine to Aggregate and the data entered in Collect is
handled properly when sent in, it seems to be just a display issue.

The workaround I figured out was to nest a inside the :

ODK Collect seems to be happy with this and I haven't noticed any
adverse side effects in the ~5mins of testing I did. Ha. :slight_smile:

Also, I just noticed the ODK Community group. Should I post questions
like this over there?

Thanks

··· On Nov 7, 11:37 am, Gaetano Borriello wrote: > It is hard to tell without seeing the entire form, but if you are > trying to repeat a group of questions, then they are better nested > that way, namely, group inside the repeat. You can imagine that the > semantics and UI of a repeat with another prompt (outside of the > repeat) grouped together would not be easy to define. > > Gaetano > > > > > > > > On Mon, Nov 7, 2011 at 11:20 AM, Matt Beals wrote: > > Hi > > > Small issue with ODK Collect and the display of looped groups. > > > This works fine, displaying everything in the group on one screen: > > > > > > ...fields here... > > > > > While the following displays one field per screen: > > > > > > > > ...fields here... > > > > > > > Out of curiosity, I moved the appearance="field-list" attribute to > > instead of and tried that. It parsed, but did not > > solve the problem. > > > Anybody else have this problem or a solution to it? > > > Thanks

Hi Matt,

This is a little javarosa oddity. The way you have to handle a repeating
field-list is like this:

repeating group ... the questions you want in a single screen ..

-Carl

··· On Tue, Nov 8, 2011 at 4:58 AM, Matt Beals wrote:

I absolutely agree that nesting inside seems more
sane. My knowledge of XForms is not great, so I've been using the
suggested form building tools. The structure above, with the
inside the , was the output of both ODK Build and XLS2XForm
when creating looped groups. It also seems to be the preferred format
for ODK Collect.

http://pastebin.com/FQnn141x
Generated by ODK Build by creating a group and checking "Looped" and
"Display On One Screen". XLS2XForms generates something similar with
"begin looped group", and "field-list" in the appearance column.
Collect ignores the 'appearance="field-list"' attribute on the
, and displays each input field on a new screen.

http://pastebin.com/TSx13zSe
My manual edit to put inside , as per Gaetano's
suggestion.
This displays correctly, but the popup dialog reads 'Add a new "null"
group?' I suspect this is because has no .

Both upload fine to Aggregate and the data entered in Collect is
handled properly when sent in, it seems to be just a display issue.

The workaround I figured out was to nest a inside the :
http://pastebin.com/m1QkXz7b
ODK Collect seems to be happy with this and I haven't noticed any
adverse side effects in the ~5mins of testing I did. Ha. :slight_smile:

Also, I just noticed the ODK Community group. Should I post questions
like this over there?

Thanks

On Nov 7, 11:37 am, Gaetano Borriello gaet...@cs.washington.edu wrote:

It is hard to tell without seeing the entire form, but if you are
trying to repeat a group of questions, then they are better nested
that way, namely, group inside the repeat. You can imagine that the
semantics and UI of a repeat with another prompt (outside of the
repeat) grouped together would not be easy to define.

Gaetano

On Mon, Nov 7, 2011 at 11:20 AM, Matt Beals m...@gaiacor.com wrote:

Hi

Small issue with ODK Collect and the display of looped groups.

This works fine, displaying everything in the group on one screen:


...fields here...

While the following displays one field per screen:



...fields here...

Out of curiosity, I moved the appearance="field-list" attribute to
instead of and tried that. It parsed, but did not
solve the problem.

Anybody else have this problem or a solution to it?

Thanks

https://github.com/clint-tseng/odkbuild/issues/9
Fixed here with one group.

··· On 7 nov, 22:02, Carl Hartung wrote: > Hi Matt, > > This is a little javarosa oddity. The way you have to handle a repeating > field-list is like this: > > > repeating group > > > ... the questions you want in a single screen .. > > > > > -Carl > > > > > > > > On Tue, Nov 8, 2011 at 4:58 AM, Matt Beals wrote: > > I absolutely agree that nesting inside seems more > > sane. My knowledge of XForms is not great, so I've been using the > > suggested form building tools. The structure above, with the > > inside the , was the output of both ODK Build and XLS2XForm > > when creating looped groups. It also seems to be the preferred format > > for ODK Collect. > > >http://pastebin.com/FQnn141x > > Generated by ODK Build by creating a group and checking "Looped" and > > "Display On One Screen". XLS2XForms generates something similar with > > "begin looped group", and "field-list" in the appearance column. > > Collect ignores the 'appearance="field-list"' attribute on the > > , and displays each input field on a new screen. > > >http://pastebin.com/TSx13zSe > > My manual edit to put inside , as per Gaetano's > > suggestion. > > This displays correctly, but the popup dialog reads 'Add a new "null" > > group?' I suspect this is because has no . > > > Both upload fine to Aggregate and the data entered in Collect is > > handled properly when sent in, it seems to be just a display issue. > > > The workaround I figured out was to nest a inside the : > >http://pastebin.com/m1QkXz7b > > ODK Collect seems to be happy with this and I haven't noticed any > > adverse side effects in the ~5mins of testing I did. Ha. :) > > > Also, I just noticed the ODK Community group. Should I post questions > > like this over there? > > > Thanks > > > On Nov 7, 11:37 am, Gaetano Borriello wrote: > > > It is hard to tell without seeing the entire form, but if you are > > > trying to repeat a group of questions, then they are better nested > > > that way, namely, group inside the repeat. You can imagine that the > > > semantics and UI of a repeat with another prompt (outside of the > > > repeat) grouped together would not be easy to define. > > > > Gaetano > > > > On Mon, Nov 7, 2011 at 11:20 AM, Matt Beals wrote: > > > > Hi > > > > > Small issue with ODK Collect and the display of looped groups. > > > > > This works fine, displaying everything in the group on one screen: > > > > > > > > > > > > ...fields here... > > > > > > > > > While the following displays one field per screen: > > > > > > > > > > > > > > > > ...fields here... > > > > > > > > > > > > > Out of curiosity, I moved the appearance="field-list" attribute to > > > > instead of and tried that. It parsed, but did not > > > > solve the problem. > > > > > Anybody else have this problem or a solution to it? > > > > > Thanks