I am using fr:repeat with version 3.9 of Orbeon to create a data table similar to the DMV-14 example form. However, when I click the Add button on the header, I get a duplicate record instead of a new record. When one record is updated, all listed items are also updated.
For instance, starting with an empty table, hit Add 3 times. Now 3 blank records are displayed. Update a field in the first record. All 3 records are updated with new value. What could cause this behavior? |
Administrator
|
The 3.9 fr:repeat needs an @origin attribute, which points to a
template for each iteration. Do you have @origin? -Erik On Thu, Aug 9, 2012 at 8:19 AM, MichaelGregory <[hidden email]> wrote: > I am using fr:repeat with version 3.9 of Orbeon to create a data table > similar to the DMV-14 example form. However, when I click the Add button on > the header, I get a duplicate record instead of a new record. When one > record is updated, all listed items are also updated. > > For instance, starting with an empty table, hit Add 3 times. Now 3 blank > records are displayed. Update a field in the first record. All 3 records are > updated with new value. > > What could cause this behavior? > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-tp4655608.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 > -- 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 have origin="instance('area-template')">
which points to <xforms:instance id="area-template"> <area> <width/> <length/> </area> </xforms:instance> Michael Gregory On Thu, Aug 9, 2012 at 5:09 PM, Erik Bruchez [via Orbeon Forms (ops-users)] <[hidden email]> wrote: > The 3.9 fr:repeat needs an @origin attribute, which points to a > template for each iteration. Do you have @origin? > > -Erik > > On Thu, Aug 9, 2012 at 8:19 AM, MichaelGregory > <[hidden email]> wrote: > >> I am using fr:repeat with version 3.9 of Orbeon to create a data table >> similar to the DMV-14 example form. However, when I click the Add button >> on >> the header, I get a duplicate record instead of a new record. When one >> record is updated, all listed items are also updated. >> >> For instance, starting with an empty table, hit Add 3 times. Now 3 blank >> records are displayed. Update a field in the first record. All 3 records >> are >> updated with new value. >> >> What could cause this behavior? >> >> >> >> -- >> View this message in context: >> http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-tp4655608.html >> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 >> > > > -- > 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 > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-tp4655608p4655609.html > To unsubscribe from fr:repeat copying records instead of creating new > records, click here. > NAML |
Administrator
|
And what does your bind, nodeset or ref attribute on fr:repeat look like?
-Erik On Fri, Aug 10, 2012 at 2:30 AM, MichaelGregory <[hidden email]> wrote: > I have origin="instance('area-template')"> > > which points to > > <xforms:instance id="area-template"> > <area> > <width/> > <length/> > </area> > </xforms:instance> > > > Michael Gregory > > > On Thu, Aug 9, 2012 at 5:09 PM, Erik Bruchez [via Orbeon Forms > (ops-users)] <[hidden email]> wrote: > >> The 3.9 fr:repeat needs an @origin attribute, which points to a >> template for each iteration. Do you have @origin? >> >> -Erik >> >> On Thu, Aug 9, 2012 at 8:19 AM, MichaelGregory >> <[hidden email]> wrote: >> >>> I am using fr:repeat with version 3.9 of Orbeon to create a data table >>> similar to the DMV-14 example form. However, when I click the Add button >>> on >>> the header, I get a duplicate record instead of a new record. When one >>> record is updated, all listed items are also updated. >>> >>> For instance, starting with an empty table, hit Add 3 times. Now 3 blank >>> records are displayed. Update a field in the first record. All 3 records >>> are >>> updated with new value. >>> >>> What could cause this behavior? >>> >>> >>> >>> -- >>> View this message in context: >>> >>> http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-tp4655608.html >>> Sent from the Orbeon Forms (ops-users) mailing list archive at >>> Nabble.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 >>> >> >> >> -- >> 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 >> >> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-tp4655608p4655609.html >> To unsubscribe from fr:repeat copying records instead of creating new >> records, click here. >> NAML > > ________________________________ > View this message in context: Re: fr:repeat copying records instead of > creating new records > > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 > -- 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've abandoned the code and upgraded to 4.0 M9 in order to take
advantage of the fr:repeat support in the form builder. Michael Gregory On Tue, Aug 14, 2012 at 6:43 AM, Erik Bruchez <[hidden email]> wrote: > And what does your bind, nodeset or ref attribute on fr:repeat look like? > > -Erik > > On Fri, Aug 10, 2012 at 2:30 AM, MichaelGregory > <[hidden email]> wrote: >> I have origin="instance('area-template')"> >> >> which points to >> >> <xforms:instance id="area-template"> >> <area> >> <width/> >> <length/> >> </area> >> </xforms:instance> >> >> >> Michael Gregory >> >> >> On Thu, Aug 9, 2012 at 5:09 PM, Erik Bruchez [via Orbeon Forms >> (ops-users)] <[hidden email]> wrote: >> >>> The 3.9 fr:repeat needs an @origin attribute, which points to a >>> template for each iteration. Do you have @origin? >>> >>> -Erik >>> >>> On Thu, Aug 9, 2012 at 8:19 AM, MichaelGregory >>> <[hidden email]> wrote: >>> >>>> I am using fr:repeat with version 3.9 of Orbeon to create a data table >>>> similar to the DMV-14 example form. However, when I click the Add button >>>> on >>>> the header, I get a duplicate record instead of a new record. When one >>>> record is updated, all listed items are also updated. >>>> >>>> For instance, starting with an empty table, hit Add 3 times. Now 3 blank >>>> records are displayed. Update a field in the first record. All 3 records >>>> are >>>> updated with new value. >>>> >>>> What could cause this behavior? >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> >>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-tp4655608.html >>>> Sent from the Orbeon Forms (ops-users) mailing list archive at >>>> Nabble.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 >>>> >>> >>> >>> -- >>> 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 >>> >>> >>> ________________________________ >>> If you reply to this email, your message will be added to the discussion >>> below: >>> >>> http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-tp4655608p4655609.html >>> To unsubscribe from fr:repeat copying records instead of creating new >>> records, click here. >>> NAML >> >> ________________________________ >> View this message in context: Re: fr:repeat copying records instead of >> creating new records >> >> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 >> > > > -- > 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 > -- 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 |
Hi Michael,
Did the upgrade help you? We seem to experience a similar sort of problem you describe with the M7 build: http://orbeon-forms-ops-users.24843.n4.nabble.com/Repeat-control-with-select-box-contents-auto-filled-from-external-sources-td4655603.html I have sent my source code to Erik but have not heard back from him still. Regards, Roman |
What I actually wanted to say was that we composed the repeater control using the Form builder build M7, and still the Runner was confused and was updating several rows simultaneously, multiplying the same data over all of them.
So I was wondering whether the repeaters created by you using the M9 build were not creating the same problems for the Runner. |
For me, using form builder in Orbeon 4.0 M7 and M9 results in the
repeaters working as expected. I do not know what was wrong in my code when manually creating the control under 3.9.... and I have since deleted the non-functioning code. Michael Gregory On Wed, Aug 15, 2012 at 9:34 AM, roman [via Orbeon Forms (ops-users)] <[hidden email]> wrote: > What I actually wanted to say was that we composed the repeater control > using the Form builder build M7, and still the Runner was confused and was > updating several rows simultaneously, multiplying the same data over all of > them. > So I was wondering whether the repeaters created by you using the M9 build > were not creating the same problems for the Runner. > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-tp4655608p4655631.html > To unsubscribe from fr:repeat copying records instead of creating new > records, click here. > NAML |
Free forum by Nabble | Edit this page |