Re: Adding to a Repeat

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 UTC