soapFaultOccurred |
It denotes the status of the current transaction.
Syntax
Script |
bState = modelId.soapFaultOccurred |
Parameters
Parameter |
Description |
---|---|
bState |
Boolean that denotes whether the transaction was successful or not. If the value istrue, the transaction is not successful. If the value isfalse, the transaction is successful. |
Remarks
This property is used to determine whether the transaction has been successful.
The function below returns the transaction state of the current model after synchronizing with the backend.
EmployeesModel.synchronize(); if (EmployeesModel.soapFaultOccurred) { alert("The transaction failed."); }