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:

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC