1.8

Table Of Contents
["ItemOrdered"]);
this.find('@ItemTotal@').text( record.tables['detail'][i].fields
["ItemTotal"]);
this.find('@ItemDesc@').text( record.tables['detail'][i].fields
["ItemDesc"]);
this.find('@nr@').text(i);
});
The following script clones and populates a boilerplate row. Once completed you will need to
hide the boilerplate row.
template
The template object represents the template with all its contexts and sections. It is used
frequently in Control Scripts (see "Control Scripts" on page281 and "Control Script API" on
page559).
It is retrieved via the merge object: merge.template (see "merge" on page563).
Which contexts are available in the template can be queried using merge.template.contexts.
To get access to a specific context, you have to specify the ContextType (see "ContextType" on
page577).
Field Type Description
contexts Array Array of contexts (see "context" on page560)
available in the template. The contexts contain
the sections (see "section" on page564).
"media" on
page561
Array Media available to this template (see "Media" on
page101). For each of them you can specify,
enable and position the stationery's front and
back.
"properties"
on the
facing page
Properties
This object contains all default properties of the
template as well as any custom properties. (On
the menu, select File > Properties to view and
complement the file properties. See File
Properties).
Page 573