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

How best to do a once only calculation?

From: Flinton Adam <Adam.Flinton@cfh.nhs.uk>
Date: Tue, 6 Jun 2006 16:09:05 +0100
Message-ID: <595299DD7F30014BBCE48B93DCB606520426378D@EXCHAQ2.nhsia.nhs.uk>
To: <www-forms@w3.org>

We have a need to put in a date generated when you construct the form as
such I have looked at

<xforms:bind nodeset="Date_begun" id="Date_begun" type="xsd:dateTime"
calculate="now()" />

However rather obviously it will do this everytime I open this

We have an element which can carry a value which we are using to denote
if something is new (i.e. should have the date now() generated) or
already existing i.e. it should be left as is.

Any ideas?



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 Tuesday, 6 June 2006 15:09:28 UTC

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