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

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,

Gary

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