2019.2

Table Of Contents
logger
This is a global ScriptLogger object that allows logging messages such as error, warning or
informational messages. The messages will appear in the Messages pane (see "Preflight
Results and Messages" on page1034 and "Designer User Interface" on page915).
Methods
These are the methods of the logger object.
Method Parameters Description
error()
message: string
Logs an error message
info() message: string Logs an informational message
warn() message: string Logs a warning message
record
The record object gives access to the record that is currently being merged with the template.
Properties
Field Type Description
fields
Array The field values that belong to this record. You can access a
specific field value using either a numeric index or the field
name: record.fields['fieldname'] or
record.fields.fieldname.
id
Number The id of this record.
index Number
The one-based index of this record, or zero if no data is
available.
tables Array
The detail tables that belong to this record. You can access a
specific table using either a numeric index or the table name,
Page 1290