W3C home > Mailing lists > Public > www-forms@w3.org > May 2006

Re: Adding to a Repeat

From: Allan Beaufour <beaufour@gmail.com>
Date: Mon, 22 May 2006 18:18:54 +0200
Message-ID: <90d6cb0e0605220918i3ddb8f88v6b03926ae5ad9e34@mail.gmail.com>
To: "Flinton Adam" <Adam.Flinton@cfh.nhs.uk>
Cc: www-forms@w3.org

On 4/26/06, Flinton Adam <Adam.Flinton@cfh.nhs.uk> wrote:
> Imagine you have a repeat & you want to be able to add items to that
> repeat. Imagine that item/element/node is called Bob
>
> Now imagine I have provided an instance which does not include any of
> those items i.e. no Bob elements, simply noone has added one yet.
>
> If I were to then want to add a Bob element, where would Xforms get a
> sample instance of Bob from to add it to the main model/instance?
>
> Should I have a second instance/model in which I can include a sample
> filled in Bob element which it could use & if so, how would I reference
> it
>
> i.e. "get //Bob from template model & add it in the right place in the
> main model (which I will be submitting back to the server)".

If the template can live in the same place as Bob, then here's a go at it:
http://groups.google.com/group/mozilla.dev.tech.xforms/browse_frm/thread/2ee8e3164eb45344/f179d485a1b50703#f179d485a1b50703

-- 
... Allan
Received on Monday, 22 May 2006 16:19:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:04 GMT