Hi Winona,
 
XForms 2.0 Specifications also add the retain action: https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_retain_Element
 
The retain action will not apply to nodes but instances. The specifications do not limit the number of retains to be possibly restored with the reset action.
 
It is not implemented yet in XSLTForms but could easily be added in the new release (there could be a patch for previous releases, too).
 
--Alain
Le 31/03/2023 18:47 CEST, Alain Couthures <[email protected]> a écrit :
 
 
Hi Winona,
 
For an undo facility, you should store the corresponding instance, or a part of it, within another instance, possibly in successive states.
 
It should be done with the insert action before deleting the element, as a "commit", and a replace action when the undo button is activated, as a "rollback".
 
What do you think?
 
--Alain
Le 30/03/2023 15:23 CEST, Winona Salesky <[email protected]> a écrit :
 
 
Has anyone implemented an 'undo' button that restores a deleted element? My client has requested this, but I'm not sure it can actually be done. 
 
Thanks, 
-Winona
 
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to