saveRecord(record, config)
saveRecord(record, config)
The
saveRecord()
method can be used to create a new record or update an existing record.
Parameters:
-
record
(object):Ab.data.Record
; -
config
(object): (optional) additional parameters for the WFR.
Example:
record.setValue('activity_log.status', 'CANCELLED');
this.mainDataSource.saveRecord(record);