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

Re: Svar: Using now() function in instance data

From: Gary Stewart <gary@deltagreen.co.uk>
Date: Thu, 1 Apr 2004 13:06:34 +0100 (BST)
To: www-forms@w3.org
Message-ID: <Pine.LNX.4.21.0404011303310.23820-100000@riff.albionsoft.com>

On Thu, 18 Mar 2004, David Landwehr wrote:

> You could do:
>   <xforms:model>
>     <xforms:setvalue ref="/point to yout xsd:date node" value="now()"
> ev:event="xforms-ready"/>
> Then the node will be updated after the external source has been read
> and the node will be editable from the UI. 

Thank's for that. It took me a while to get it working but as I added
another event and that didn't work either I realised that I used the event
namespace http://www.w3.org/TR/xml-events/ not
http://www.w3.org/2001/xml-events/ like I was supposed to, I don't know
where I got the former from. 

Works like a treat now.

Many thanks,

Received on Thursday, 1 April 2004 07:09:28 UTC

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