2018.2

Table Of Contents
Most of these objects and functions are also available in Control Scripts ("Control Scripts" on
page751) and Post Pagination Scripts ("Post Pagination Scripts" on page766).
For objects and functions restricted to Control Scripts see "Control Script API" on page1162,
and for the Post Pagination Script API see "Post Pagination Script API" on page1188.
The basics of script-writing in the Designer are explained in the following topic: "Writing your
own scripts" on page722.
Objects
Object Description
"results" on
page1192
This object is used to manipulate the content of the template. It contains the
HTML element or set of HTML elements that match the selector of the script,
specified in the script editor.
This object is not available in Control Scripts, because that type of script
doesn't have a selector (see "Control Scripts" on page751).
"record" on
page1103
The record in the main data set that is currently being merged. To get the
value of a field in the record, use record.fields['fieldname'] or
record.fields.fieldname.
"logger" on
page1103
Global object that allows you to log messages.
locale Defines which locale to use. See "Locale" on page685.
"formatter"
on
page1141
Global object that allows you to format values (such as a date or number).
"automation"
on
page1163
This object encapsulates the properties of the Workflow process that
triggered the current operation. Not available in PrintShopMail Connect.
"merge" on
page1167
The merge object is mainly used in Control Scripts. It gives access to the
template with all of its contexts and sections. It doesn't give access to the
Page 1101