A form (PODSSubmission object) has a submission status, which can have any one of the values represented by the constants listed in the table below.
               These values are specified in JavaScript as strings, and in PODS as C macros.
            
Table 1. Submission status constants
|  
                                    
                         Constant  | 
                      
                                    
                         Description  | 
                  
|---|---|
|  
                                       
                            UNSUBMITTED_SUBMIT_STATUS  | 
                         
                                       
                            The form has not been submitted yet.  | 
                     
|  
                                       
                            SUCCESSFUL_SUBMIT_STATUS  | 
                         
                                       
                            The form was submitted successfully.  | 
                     
|  
                                       
                            ERRORED_SUBMIT_STATUS  | 
                         
                                       
                            The form was not submitted successfully.  | 
                     
A PODSSubmission object also has a posting method, which can have either of the values represented by the constants listed in Constants for PODS submissions. As with the submission constants, use strings in JavaScript and C macros in PODS.
            
Table 2. Posting method constants
|  
                                    
                         Constant  | 
                      
                                    
                         Description  | 
                  
|---|---|
|  
                                       
                            SUB_METHOD_POST  | 
                         
                                       
                            Post the contents of the form.  | 
                     
|  
                                       
                            SUB_METHOD_GET  | 
                         
                                       
                            Retrieve the data requested by the form.  | 
                     
The following code example shows how these constants would appear in JavaScript:
var subMgr = avantgo.submissionManager; var submission = subMgr.createSubmission( "UNSUBMITTED_SUBMIT_STATUS", new Date(), false, null, source, 0, action, "P", "# " + index++);  | 
                  
| Send feedback about this page using email. | Copyright © 2008, iAnywhere Solutions, Inc. |