- From: <Nick_Van_den_Bleeken@inventivedesigners.com>
- Date: Wed, 7 Jun 2006 08:01:39 +0200
- To: "Mark Birbeck" <mark.birbeck@x-port.net>
- Cc: www-forms@w3.org
Mark, Ok sorry your right, missed that part of the e-mail. Nick Van den Bleeken - Research & Development Inventive Designers Phone: +32 - 3 - 8210170 Fax: +32 - 3 - 8210171 Email: Nick_Van_den_Bleeken@inventivedesigners.com www-forms-request@w3.org wrote on 06/06/2006 09:11:38 PM: > > Nick, > > > You can for example add an even listener to your model that > > listens for the modelconstruct-done event and use a set value > > action to set the value. > > > > <xforms:setvalue bind="Date_begun" value="now()" > > ev:event="xforms-model-construct-done"/> > > But Adam's question was that he didn't want the date to be repeatedly > overwritten every time he reloaded the form. That's why I likened it to a > 'default' value, since they are usually used to give an empty form control a > value. > > Of course, if using a processor that supports the conditional tests from > XForms 1.1 then you could do what you suggest, but test for 'empty' first. > > Regards, > > Mark > > > Mark Birbeck > CEO > x-port.net Ltd. > > e: Mark.Birbeck@x-port.net > t: +44 (0) 20 7689 9232 > b: http://internet-apps.blogspot.com/ > w: http://www.formsPlayer.com/ > > Download our XForms processor from > http://www.formsPlayer.com/ > > > -------------------------------------------------- Inventive Designers' Email Disclaimer: http://www.inventivedesigners.com/email-disclaimer
Received on Wednesday, 7 June 2006 06:01:49 UTC