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

Adding to a Repeat

From: Flinton Adam <Adam.Flinton@cfh.nhs.uk>
Date: Wed, 26 Apr 2006 11:46:24 +0100
Message-ID: <595299DD7F30014BBCE48B93DCB6065203F79669@EXCHAQ2.nhsia.nhs.uk>
To: <www-forms@w3.org>

Dear All,

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

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)".



This e-mail is confidential and privileged. If you are not the intended recipient please accept our apologies; please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Thank you for your co-operation.
Received on Wednesday, 26 April 2006 10:46:46 UTC

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