setValue(name, value)
setValue(name, value)
Sets object value of specified record field.
Parameters:
-
name
(String): field name; -
value
(object): value as a JavaScript object; to save NULL value to the database, use empty string ('');
Example:
Change the status field of a record and save:
record.setValue('activity_log.status', 'CANCELLED');
record.setValue('activity_log.description', '');
// set description to NULL
this.mainDataSource.saveRecord(record);