setRecord(record)
setRecord(record)
Sets the current form record. The application code can obtain the record from the server, get it from another panel, or create a new record from scratch.
Parameters:
-
record
(object):Ab.data.DataRecord
object.;
Example:
Copy the record from a row to a form:
var employeeRecord = row.getRecord();
this.employeeForm.setRecord(employeeRecord);