Hi,
Is there any way to bind to a specific element within a repeated structure? I have an instance: <xf:instance id="record"> <Persons> <Person direct="n" id="0"/> ... </Persons> </xf:instance> and the id value is "0" for all elements where direct="n" and some non-zero value for the element where direct="y". The value of direct is set within the repeat control for Person and I try a bind with: <xf:bind nodeset="instance('record')/Person[@direct = 'y']/@id" calculate='...'/> but when I then try and submit the form, it will not submit. Any ideas? Cheers, Matthew -- 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 |
Could you provide a standalone example, there is no reason why that bind
wouldn't work Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Matthew Graham [mailto:[hidden email]] >Sent: 01 November 2006 07:50 >To: [hidden email] >Subject: [ops-users] Binding to an element in a repeat structure > >Hi, > >Is there any way to bind to a specific element within a >repeated structure? I have an instance: > ><xf:instance id="record"> > <Persons> > <Person direct="n" id="0"/> > ... > </Persons> ></xf:instance> > >and the id value is "0" for all elements where direct="n" and >some non-zero value for the element where direct="y". >The value of direct is set within the repeat control for >Person and I try a bind with: > ><xf:bind nodeset="instance('record')/Person[@direct = 'y']/@id" >calculate='...'/> > >but when I then try and submit the form, it will not submit. > >Any ideas? > > Cheers, > > Matthew > > > -- 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 |
Administrator
|
In reply to this post by mjgraham
Matthew,
> Is there any way to bind to a specific element within a repeated > structure? I have an instance: > > <xf:instance id="record"> > <Persons> > <Person direct="n" id="0"/> > ... > </Persons> > </xf:instance> > > and the id value is "0" for all elements where direct="n" and some > non-zero value for the element where direct="y". > The value of direct is set within the repeat control for Person and I > try a bind with: > > <xf:bind nodeset="instance('record')/Person[@direct = 'y']/@id" > calculate='...'/> > > but when I then try and submit the form, it will not submit. If it doesn't submit, it probably means that it has some invalid nodes or some required-but-empty nodes. To see if this theory is correct, try adding relevant="false" and validate="false" on your submission. If the submission passes, then the theory was correct. If it still doesn't pass, there is another issue with the submission. Also enable XForms logging to better see what's going on: http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-debugging -Erik -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 |
Free forum by Nabble | Edit this page |