Much of the Control Script magic is performed by setting one of the fields of the
section object. Via the
section object you can omit, select and clone ; add a background to a Print section; add a header to an email; etc.
A section can be retrieved via the that it belongs to, using
merge.template..ContextType.sections["section name"]. For example:
Object that contains one context and its sections. It is accessed through the
To get access to one context, you have to specify the ContextType (see ContextType), for example:
var printContext = merge.template.contexts.PRINT;.
merge object you can find out which context is currently being merged:
template object contains all contexts and sections. It is accessed through the
merge object gives access to the template with all of its contexts and sections .
|channel (see Channel)
||The channel for which output is generated. This is registered in the
Note that the channel doesn't change when the output consists of different contexts. When generating email, for example, the channel is EMAIL, even when merging the Print context to attach it to the email.
The current record in the main data set. To get the value of a field in the record, use