setRecord(record)
setRecord(record)
Sets the current report 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 form to a report:
var employeeRecord = this.employeeForm.getRecord();
this.employeeReport.setRecord(employeeRecord);