[XForms] saving to file and then redirecting to another page

Ankur Mittal amittal3 at csc.com
Wed Jul 28 10:38:06 EDT 2004


                                                                            
                                                                            
                                                                            
 Hi ,                                                                       
                                                                            
 I am trying to save my instance data to a local xml file and then          
 redirect to another page.                                                  
                                                                            
 The problem is it redirects me to another page first instead of            
 saving.                                                                    
                                                                            
 If I comment the redirect part(xforms:load) then data is saved to a        
 local file easily.                                                         
                                                                            
 So How can I save the data first and then redirect to another file?.       
                                                                            
                                                                            
 my relevant code is -                                                      
                                                                            
 <xforms:submission id="Request_SaveLocal"                                  
                                                                            
 action="file://C:/person.xml"                                              
 ref="/person"                                                              
 method="put"                                                               
 replace="none"                                                             
 omit-xml-declaration="false"                                               
 />                                                                         
 ...                                                                        
                                                                            
 <xforms:trigger>                                                           
 <xforms:label>Save and Continue</xforms:label>                             
 <xforms:action ev:event="DOMActivate">                                     
                                                                            
 <xforms:send submission="Request_SaveLocal" />                             
                                                                            
 <xforms:load resource="page2.html" show="replace"/>                        
 </xforms:action>                                                           
 </xforms:trigger>                                                          
                                                                            
                                                                            
 Any help is the regard would be appreciated.                               
                                                                            
 Best regards,                                                              
                                                                            
                                                                            



Ankur Mittal
Software Engg,
CSC, Noida
Mobile :9891360614
Ext- 1371


----------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------





More information about the Xforms mailing list