pp108 : saveAllModels()

saveAllModels()


It saves the modified data of all models in the specified form.

Syntax

Script

bStatus = WebForm.saveAllModels(sApplicationID)


Parameters

Parameter

Description

sApplicationID

The applicationID of the form whose Models are to be synchronized with the backend.


Return Value


Returns true or false. If it is true then the synchronization of the models to the backend is successful.

Remarks


Internally this method is called when the Save button on the XForm is clicked.

Sample Code

The following code snippet shows how this method can be used.

// Called on click of the "saveModels" button.
// Saves the modified data in all models of the current page.
function saveModels_Click(eventObject)
{
 WebForm.saveAllModels(application.container.applicationId);
}

Applies to


WebForm