2022.1

Table Of Contents
var row = record.tables.myDescriptions[i].addRow();
record.tables.myDescriptions[row].set({customerName : "John Doe",
customerAddress : "123 test road"});
setCopy(i, record)
This method of the record object sets field values in a copy of the current record in the main
data set. (See also: "record" on page450.)
Note
This method cannot be used in post-processor scripts, because it operates on the current
record before it is written to the database.
i
The index of the record copy (0-based; the original record has an index of 0).
record
The mandatory record parameter is a JavaScript object that contains one or more fields
specified in the data model at the root level.
The record parameter may contain a subset of the fields in the Data Model. Only the fields
included in the record parameter are updated in the database, while the contents of all other
fields remain unchanged.
The call fails if the parameter is omitted or empty, if any of the fields specified in the record
doesn't exist in the Data Model, or if a value cannot be converted to the data type that is
expected in a field.
Note
In order to change values in the record copies, the fields to modify must either have a
default value or have an extraction task earlier in the process that actually assigns a
value to them.
About data types
Where possible, values are automatically converted into the data type of the respective data
field.
Page 448