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

Re: Does setvalue update the instance immediate?

From: John Boyer <boyerj@ca.ibm.com>
Date: Wed, 28 Jun 2006 10:32:56 -0400
To: Nick_Van_den_Bleeken@inventivedesigners.com
Cc: www-forms@w3.org, www-forms-request@w3.org
Message-ID: <OF4CED1F69.97066645-ON8825719B.004F26CE-8825719B.004FEAF4@ca.ibm.com>
Hi Nick,

Yes, absolutely, the node referenced by setvalue is changed immediately as 
a behavior of the setvalue.
However, if there are other things computationally dependent on that, they 
won't get updated before you invoke send, so you will need to add an 
invocation of the recalculate action (this is exactly why we have those 

I think that your message-based form is falling victim to exactly the same 
problem that David raised earlier about the schedule under which the form 
controls in the message action UI are updated.  I was assigned the action 
item to clarify that the message action must behave as if it is creating 
the form controls at the time the message is invoked so that they have the 
updated values despite the fact that the recalculate-revalidate-refresh 
sequence of the form after setvalue is subject to the deferred update 
behavior.  I have completed the action item and, pending approval of the 
group, the erratum should be issued shortly.  The erratum is already 
available for group review.

John M. Boyer, Ph.D.
Senior Product Architect/Research Scientist
Co-Chair, W3C XForms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com  http://www.ibm.com/software/

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer

Sent by: www-forms-request@w3.org
06/28/2006 05:27 AM


Does setvalue update the instance immediate?


The attached test case contains a 'setvalue' followed by a 'message'. I 
thought that the value in the instance will be changed before the message 
action is executed. Is this correct? In the real form we don't use a 
'message' but a 'send' action that uses the instance which the 'setvalue' 
has updated. But this has the same problem, the old instance is submitted, 

not containing the new value.

Thanks in advance,

Nick Van den Bleeken  -  Research & Development
Inventive Designers
Phone: +32 - 3 - 8210170
Fax: +32 - 3 - 8210171
Email: Nick_Van_den_Bleeken@inventivedesigners.com


Inventive Designers' Email Disclaimer:


Received on Wednesday, 28 June 2006 14:33:23 UTC

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