I’m very new to Orbeon forms (although I played with it a
while ago). Here’s the problem: I have two repeatable sections in my form. While
the first one works fine (i.e. new fields are added when the user clicks a
button) the other doesn’t – i.e. it doesn’t display new fields. Below are the
relevant sections from the form and the data source. I’ll appreciate if
somebody could look at that and tell me if they spot anything wrong. I can also
confirm that the data is actually copied to the actual instance, because I can
see TEST TOPIC when I add a button to remove the selected mods:topic line but Add
another topic doesn’t display any new lines of fields. I hope I’m being clear. Thanks. Muzaffer FORM: <!-- This one works fine --> <xforms:trigger appearance="minimal"> <xforms:label>Add
another person</xforms:label> <!-- This 2nd one does not work correctly
--> <xforms:trigger appearance="minimal"> <xforms:label>Add
another topic</xforms:label> <xforms:repeat nodeset="mods:subject[@authority='lctgm']" id="topic-repeat"> <tr> SECTION from the SOURCE DATA: <mods:subject> <mods:namePart/> <mods:affiliation/> </mods:subject> <mods:subject authority="lctgm"> SECTION from the DATA TEMPLATE: <mods:subject authority="lctgm"> <mods:topic>TEST
TOPIC</mods:topic> <mods:subject> <mods:namePart></mods:namePart> <mods:affiliation></mods:affiliation> -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Your second xforms:repeat iterates over the mods:subject nodes
not the mods:topic nodes ----------------------------------------------- Ryan Puddephatt FIX Developer Fidessa LatentZero 1 Alfred Place London WC1E 7EB Office: +44 (0) 20 7462 4200 Direct: +44 (0) 20 7323 6112 Blackberry: +44 (0) 79 8539
2458 Fax: +44 (0) 20 7462 4242 Email: [hidden email] From: Ozakca, Muzaffer
[mailto:[hidden email]] I’m very new to Orbeon forms (although I
played with it a while ago). Here’s the problem: I have two repeatable sections
in my form. While the first one works fine (i.e. new fields are added when the
user clicks a button) the other doesn’t – i.e. it doesn’t display new fields.
Below are the relevant sections from the form and the data source. I’ll
appreciate if somebody could look at that and tell me if they spot anything
wrong. I can also confirm that the data is actually copied to the actual
instance, because I can see TEST TOPIC when I add a button to remove the
selected mods:topic line but Add another topic doesn’t display any new lines of
fields. I hope I’m being clear. Thanks. Muzaffer FORM: <!-- This one works fine --> <xforms:trigger appearance="minimal">
<xforms:label>Add another person</xforms:label> <!-- This 2nd one does not
work correctly --> <xforms:trigger appearance="minimal">
<xforms:label>Add another topic</xforms:label> <xforms:repeat nodeset="mods:subject[@authority='lctgm']" id="topic-repeat">
<tr> SECTION from the SOURCE DATA: <mods:subject>
<mods:namePart/> <mods:affiliation/> </mods:subject> <mods:subject
authority="lctgm"> SECTION from the DATA TEMPLATE: <mods:subject authority="lctgm">
<mods:topic>TEST TOPIC</mods:topic> <mods:subject>
<mods:namePart></mods:namePart>
<mods:affiliation></mods:affiliation>
_______________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Oh I see what you are saying,
you are correct! Now I’m not sure where to get the data for the input field,
shall I use mods:subject[@authority='lctgm']/mods:topic
? <xforms:repeat nodeset="mods:subject[@authority='lctgm']/mods:topic" id="topic-repeat">
<tr> Thanks a lot! Muzaffer From: Ryan Puddephatt
[mailto:[hidden email]] Your second xforms:repeat iterates over the mods:subject nodes
not the mods:topic nodes ----------------------------------------------- Ryan
Puddephatt FIX
Developer Fidessa
LatentZero 1
Alfred Place London
WC1E 7EB Office:
+44 (0) 20 7462 4200 Direct:
+44 (0) 20 7323 6112 Blackberry:
+44 (0) 79 8539 2458 Fax:
+44 (0) 20 7462 4242 Email: [hidden email] From: Ozakca, Muzaffer
[mailto:[hidden email]] I’m very new to Orbeon forms (although I played with it a
while ago). Here’s the problem: I have two repeatable sections in my form.
While the first one works fine (i.e. new fields are added when the user clicks
a button) the other doesn’t – i.e. it doesn’t display new fields. Below are the
relevant sections from the form and the data source. I’ll appreciate if somebody
could look at that and tell me if they spot anything wrong. I can also confirm
that the data is actually copied to the actual instance, because I can see TEST
TOPIC when I add a button to remove the selected mods:topic line but Add
another topic doesn’t display any new lines of fields. I hope I’m being clear. Thanks. Muzaffer FORM: <!-- This one works fine --> <xforms:trigger appearance="minimal">
<xforms:label>Add another person</xforms:label> <!-- This 2nd one does not work correctly
--> <xforms:trigger appearance="minimal">
<xforms:label>Add another topic</xforms:label> <xforms:repeat nodeset="mods:subject[@authority='lctgm']" id="topic-repeat">
<tr> SECTION from the SOURCE DATA: <mods:subject>
<mods:namePart/> <mods:affiliation/> </mods:subject> <mods:subject authority="lctgm"> SECTION from the DATA TEMPLATE: <mods:subject authority="lctgm">
<mods:topic>TEST TOPIC</mods:topic> <mods:subject>
<mods:namePart></mods:namePart>
<mods:affiliation></mods:affiliation>
-- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
I used “.” as the ref attribute
in the xforms:input and it worked. Thanks Ryan! Muzaffer From: Ozakca, Muzaffer
[mailto:[hidden email]] Oh I see what you are saying,
you are correct! Now I’m not sure where to get the data for the input field,
shall I use mods:subject[@authority='lctgm']/mods:topic
? <xforms:repeat nodeset="mods:subject[@authority='lctgm']/mods:topic" id="topic-repeat">
<tr> Thanks a lot! Muzaffer From: Ryan Puddephatt
[mailto:[hidden email]] Your second xforms:repeat iterates over the mods:subject nodes
not the mods:topic nodes ----------------------------------------------- Ryan
Puddephatt FIX
Developer Fidessa
LatentZero 1
Alfred Place London
WC1E 7EB Office:
+44 (0) 20 7462 4200 Direct:
+44 (0) 20 7323 6112 Blackberry:
+44 (0) 79 8539 2458 Fax:
+44 (0) 20 7462 4242 Email: [hidden email] From: Ozakca, Muzaffer
[mailto:[hidden email]] I’m very new to Orbeon forms (although I played with it a
while ago). Here’s the problem: I have two repeatable sections in my form.
While the first one works fine (i.e. new fields are added when the user clicks
a button) the other doesn’t – i.e. it doesn’t display new fields. Below are the
relevant sections from the form and the data source. I’ll appreciate if
somebody could look at that and tell me if they spot anything wrong. I can also
confirm that the data is actually copied to the actual instance, because I can
see TEST TOPIC when I add a button to remove the selected mods:topic line but
Add another topic doesn’t display any new lines of fields. I hope I’m being clear. Thanks. Muzaffer FORM: <!-- This one works fine --> <xforms:trigger appearance="minimal">
<xforms:label>Add another person</xforms:label> <!-- This 2nd one does not work correctly
--> <xforms:trigger appearance="minimal">
<xforms:label>Add another topic</xforms:label> <xforms:repeat nodeset="mods:subject[@authority='lctgm']" id="topic-repeat">
<tr> SECTION from the SOURCE DATA: <mods:subject>
<mods:namePart/> <mods:affiliation/> </mods:subject> <mods:subject authority="lctgm"> SECTION from the DATA TEMPLATE: <mods:subject authority="lctgm">
<mods:topic>TEST TOPIC</mods:topic> <mods:subject>
<mods:namePart></mods:namePart>
<mods:affiliation></mods:affiliation>
-- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |