record

The current record in the main data set.

Properties

Property Description
copies The total number of copies of the current record that must be created. By default, this is 1. This value is used when the record is saved, at the end of the data mapping process for each record.
fields The field values that belong to this record. You can access a specific field value using either a numeric index or the field name.

index

The one-based index of this record, or zero if no data is available.

tables

The detail tables that belong to this record. You can access a specific table using a numeric index or the table name; see table.

Example

See this How-to for an example of how the current record index and/or the total number of records in the record set can be displayed in a document: How to get the record index and count.

Methods

Note: These methods cannot be used in post-processor scripts, because they operate on the current record before it is written to the database.

Method Description

set(record)

Sets field values in the current record.

setCopy(i, record)

Sets field values in a copy of the current record.