1.8

Table Of Contents
Object Description
"record" on
the facing
page
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
the facing
page
Global object that allows you to log messages.
locale Defines which locale to use. See "Locale" on page590.
"formatter"
on page912
Global object that allows you to format values (such as a date or number).
"automation"
on page931
This object encapsulates the properties of the Workflow process that
triggered the current operation. Not available in PrintShopMail Connect.
"merge" on
page935
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
content of the sections. To change the content of a section, you would
create a script with a selector and use the results object in the script (see
"results" on page878).
Global functions
Function Description
"loadhtml()"
on page920
Loads HTML data from aHTML (snippet). The returned HTML can be
placed into a variable or into a set of HTML elements.
"loadjson()"
on page922
Loads jsondata from a URL. This is a simple way to retrieve content from
external systems.
"query()" on
page926
Performs a query in the template's contents and creates a new result set
containing the HTML elements that match the given CSS selector.
Page 875