Nesting repeats within a relevant group

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Nesting repeats within a relevant group

danc-3
I have a complex form where a specific <xforms:group> has 4 sets of repeats nested two levels deep.  The display of this group is bound to a relevant condition which is based on whether or not a user selects YES or NO in a combo box.

If a user selects YES, then my <xforms:group> (with all of its repeats and nested repeats) is supposed to display (so further information can be filled out).  If the user selects NO, then this disappears.

What is happening is as soon as I bind by group to a relevant condition, it disappears.  It doesn't display even if the relevant condition is true.

At first I thought that it was just that the relevant condition was never evaluating to true, but I was able to confirm that it was true.

I realize that one would probably have to see my code to get the full picture, but I wanted to at least ask if anyone out there knows of any problems with such?

I have already gone through the TODO examples and verified my repeats were correct.  And I downloaded the latest unstable build of OPS 3.0.

If anyone can give me any help or at least direct me in what I should look for, that would be great.

- Dan



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Nesting repeats within a relevant group

Erik Bruchez
Administrator
[hidden email] wrote:

 > I have a complex form where a specific <xforms:group> has 4 sets of
 > repeats nested two levels deep.  The display of this group is bound
 > to a relevant condition which is based on whether or not a user
 > selects YES or NO in a combo box.
 >
 > If a user selects YES, then my <xforms:group> (with all of its
 > repeats and nested repeats) is supposed to display (so further
 > information can be filled out).  If the user selects NO, then this
 > disappears.
 >
 > What is happening is as soon as I bind by group to a relevant
 > condition, it disappears.  It doesn't display even if the relevant
 > condition is true.
 >
 > At first I thought that it was just that the relevant condition was
 > never evaluating to true, but I was able to confirm that it was
 > true.
 >
 > I realize that one would probably have to see my code to get the
 > full picture, but I wanted to at least ask if anyone out there knows
 > of any problems with such?
 >
 > I have already gone through the TODO examples and verified my
 > repeats were correct.  And I downloaded the latest unstable build of
 > OPS 3.0.
 >
 > If anyone can give me any help or at least direct me in what I
 > should look for, that would be great.

I could be several things, from a bug in your XForm code to a bug in
the XForms engine itself. A common mistake is to forget that a @ref
attribute used for relevance purpose may refer to another instance
with the instance() function, and this changes the current node-set to
a node-set in that other instance. You should make sure that children
of that xforms:group address the correct instance.

-Erik




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws