2020.2

Table Of Contents
contexts and sections.
For more information about Control Scripts, see "Control Scripts" on page890 and "Control
Script API" on page1379.
Some of the objects are also useful in Post Pagination Scripts; see "Post Pagination Scripts"
on page906 and "Post Pagination Script API" on page1415.
For sample scripts, follow the links to the respective objects.
Field Type Description
channel "Channel"
on
page1412
The final output channel: EMAIL, PRINT or WEB. The
channel doesn't change when the output consists of different
contexts. When generating an email, for example, the
channel is EMAIL, even when merging the Print context to
attach it to the email.
"context"
on
page1417
Context The context rendered by this merge run. If for one record,
different contexts need to be output (for example, when the
Print context is attached to an email) a record is merged
multiple times: once per context. Per merge run,
merge.context shows with which context the record is
merged.
pagination "Pagination"
on
page1438
Contains the total page count and sheet count of all sections
in the Print context after pagination.
"section"
on
page1426
Section
In Standard Scripts, this object defines the section that is
being merged.
Note! In Control Scripts, merge.section is only available
when the output channel is WEB. To make sure that it is
defined, use the following statement: if (merge.channel ==
Channel.WEB && merge.context.type == ContextType.WEB)
{ ... }.
To retrieve any section in a Control Script, use:
merge.template.contexts.ContextType.Section['Section
name']; (for example:
Page 1388