W3C home > Mailing lists > Public > www-forms@w3.org > October 2005

Re: how to reset just a part of an model

From: John Boyer <boyerj@ca.ibm.com>
Date: Thu, 13 Oct 2005 10:40:10 -0700
To: Vincent Berger <vincent.berger@afp.com>
Cc: www-forms@w3.org, www-forms-request@w3.org
Message-ID: <OF1276E204.0436F690-ON88257099.00602572-88257099.006110A1@ca.ibm.com>
Hi Vincent,

You'll have better support for this in XForms 1.1 because it will have an 
ability to clone a node
from anywhere to anywhere.  So you could put your prototypical data for 
when a case is first
started into some separate instance data, and you could then reset a case 
by cloning in the 
prototype then deleting the current data.

For XForms 1.0, you could achieve the same effect if you specially 
organized your data so that
the real data and the prototype elements were children of a common parent. 
 You could then
use insert and delete actions to achieve the same effect.  But it's more 
cumbersome and it
imposes a particular data structure on you...

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





Vincent Berger <vincent.berger@afp.com> 
Sent by: www-forms-request@w3.org
10/13/2005 06:13 AM

To
www-forms@w3.org
cc

Subject
how to reset just a part of an model






Hi.

Considering a multi-screens form, each screen 'implemented' by a 
xforms:case
and proposing a 'reset' trigger to reset the data concerned in the case 
(and only in the case).

Do you know how to do the reset of the part of the model (i.e. a nodeset 
of an instance) 
concerned, and only this part. (so without using xforms:reset) ?

Thanks.
vzo.


-- 
Vincent Berger <vincent.berger@afp.com>
Agence France-Presse 


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 

This e-mail, and any file transmitted with it, is confidential and 
intended solely for the use of the individ ual or entity to whom it is 
addressed. If you have received this email in error, please contact the 
sende r and delete the email from your system. If you are not the named 
addressee you should not disseminate, distr ibute or copy this email. 

For more information on Agence France-Presse, please visit our web site at 
http://www.afp.com 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
Received on Thursday, 13 October 2005 17:40:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:02 GMT