JavaScript

listObj.getAllErrors Method

Syntax

var errorObj = listObj.getAllErrors();

Returns

errorObjJSON Array

A JSON array containing the errors that occurred when synchronizing a List Control. If no errors occurred, the array will be empty. Each object in the JSON array has the following properties:

errorTypeString

The type of error. Can be 'writeConflict', 'serverSide', or 'globalError'.

pathString

The 'path' to get to the row that had the error. If the error was in a child List, the path wil indicate how to navigate to the child row.

errorArray

An array of error information.

Description

Returns all errors that occurred when synchronizing a List.

Discussion

Only applies to Lists that have a Detail View. Returns an array of objects containing all errors that occurred when synchronizing the List. One object is created for each error.

var listObj = {dialog.object}.getControl('list1');
var err = listObj.getAllErrors();
alert(JSON.stringify(err));