DataProcessor

Handles client-server data saving operations.

Methods
attachEvent attaches the handler to an inner event of the component
attachProgress assigns handler for data saving actions
blockEvent temporarily blocks triggering of ALL events of the calling object
callEvent calls an inner event
clearValidation removes "data incorrect" highlighting from invalid text fields
define redefines a single configuration property (or a object with properties)
detachEvent detaches a handler from an event (which was attached before by the attachEvent method)
escape escapes data
getItemState return update state for the item in question
getState gets the current DataProcessor state
hasEvent checks whether the component has the specified event handler
ignore ignores the data operation passed as the parameter (the operation will not be saved on the server)
mapEvent routes events from one object to another
off disables dataProcessor
on enables dataProcessor
processResult process data saving results
reset reset updated state for all items
save marks a data record as changed and initiates data saving
send sends a request to server
setItemState set update state for the item
unblockEvent cancels events blocking that was enabled by the 'blockEvent' command
validate checks data in the form
Events
onAfterDataSend fires the moment data has gone to server
onAfterDelete fires after successful data deletion
onAfterInsert fires after successful data insertion
onAfterSave fires after a server-side response has been received and processed
onAfterSaveError fires for data saving errors
onAfterSync called when server side response received and processed
onAfterUpdate fires after successful data update
onAfterValidation fires after data has been validated
onBeforeDataSend called before sending data to server side
onBeforeDelete fires before sending data for item deletion
onBeforeInsert fires before sending data for item insertion
onBeforeSaveError fires for data saving errors
onBeforeSync called when server side response received, but not processed yet
onBeforeUpdate fires before sending data for item update
onBeforeValidate called before running validation
onLoadError occurs when server side response is invalid and can't be processed
onValidationError fires when a form input fails to pass validation
onValidationSuccess fires after a form input has passed validation successfully
Properties
autoupdate enables automatic data updating on server while any changes on client-side are done
escape custom escaping function
id the ID of a widget
master the linked data component (e.g. grid)
mode type of request
on allows attaching custom handlers to inner events of the component
operationName name of parameter which will hold operation type
rules defines a set of rules for input field(s) of the form(htmlform)
store allows to define datastore which will be monitored for changes
trackMove enables data moving tracking
undoOnError defines whether undo will be made if server returns error response
updateFromResponse server data update mode
url server side data saving script
Other
config all options from the initial component configuration
name indicates the name of the component (a read-only property)
Back to top