Re: Does setvalue update the instance immediate?

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 
actions).

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





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

To
www-forms@w3.org
cc

Subject
Does setvalue update the instance immediate?






All,

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:

http://www.inventivedesigners.com/email-disclaimer

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