2022.1

Table Of Contents
To swap a Print section's background dynamically, you can use the Dynamic Background
Script Wizard; see "Dynamic Print section backgrounds" on page885.
Dynamic tables
A Dynamic Table is a table with a variable number of rows that can overflow on one or more
pages. It can also display subtotals on transport lines. In invoices, a Dynamic Table is an
essential element. Read "Dynamic Table" on page866 to learn how to insert a dynamic table.
Snippets
Snippets are pieces of content that can be re-used within the same template, in all contexts and
sections. Snippets can contain any contents that a section can have, such as text, images,
variable data, dynamic tables, etc. They are often very useful to personalize content, especially
in combination with variable data and scripts. See "Snippets" on page775 and "Loading a
snippet via a script" on page945.
Scripts
As soon as you want to do more than what can be done with the available Script Wizards, self-
made scripts are the solution. You could, for example, combine data of two or more data fields
in a condition for conditional text. Or you could load a part of a snippet depending on the value
of a data field. With a self-made script you can achieve anything that can be done by any of the
Script Wizards, and much more.
The basics of script-writing in the Designer are explained in the following topic: "Writing your
own scripts" on page918.
Control Scripts
When output is generated from a template, Control Scripts run before all other scripts, when a
record is merged with a context. They determine how different sections of the context are
handled. They can, for example, make the page numbering continue over all Print sections,
split Email attachments, or omit Print sections from the output.
Some knowledge of JavaScript is needed to edit Control Scripts, just as for any other self-made
scripts; see "Writing your own scripts" on page918. Some functionality is provided as a
Scripting Wizard, for example Conditional Print Sections.
See "Control Scripts" on page954.
Page 832