2019.2

Table Of Contents
["ItemNumber"]);
this.find('@ItemOrdered@').text( record.tables['detail'][i].fields
["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.
html(value)
Replaces the contents of the <body> of a section or Master Page by the supplied value. This
function is only available in Control Scripts. See also: "section" on page907 and "masterpage"
on page868.
value
A String that may contain HTML tags.
Examples
The following script loads a snippet based on the value of a field, and then replaces the content
of a Print section with the snippet using html().
var mySection = merge.template.contexts.PRINT.sections["Section
1"];
var promoTxt = loadhtml('snippets/promo-' + record.fields['City'] +
'.html', );
mySection.html(promoTxt);
paginate()
This method of the section object (see "section" on page907) triggers pagination of the current
section. The pagination process re-establishes page boundaries, updates page numbers and
page counts, and reapplies Master Pages.
Depending on whether page numbering restarts in each section this may affect the page
numbers in other sections as well (see "Configuring page numbers" on page152).
When the pagination process has ended, the script resumes.
Page 890