2021.1

Table Of Contents
["ItemOrdered"]);
row.find('@ItemTotal@').text( record.tables['detail'][i].fields
["ItemTotal"]);
row.find('@ItemDesc@').text( record.tables['detail'][i].fields
["ItemDesc"]);
row.find('@nr@').text( i );
results.parent().append(row);
}
// Hide our boilerplate row (note that this doesn't really delete
the row).
results.hide();
html()
In a Control Script, the html() function of a section or Master Page can be used to get the initial
contents of its <body>, and modify them. This makes it possible, for example, to populate a
section or Master Page with elements retrieved from a Content Management system, before
Standard Scripts run.
html()
Gets the initial contents of the <body> of a section or Master Page.
html(value)
Replaces the contents of the <body> of a section or Master Page with the supplied value. This
function is only available in Control Scripts. See also: "section" on page1433 and
"masterpage" on page1389.
value
A String that may contain HTML tags.
Examples
The following script uses html() to retrieve the contents of a section and add a paragraph to it.
var foo = merge.context.sections["Section 1"].html();
foo += "<p>hello world</p>";
merge.context.sections["Section 1"].html( foo );
Page 1414