2020.2

Table Of Contents
Post Pagination Scripts
Post Pagination Scripts are run in a Print context after the content has been paginated.
Because they can search through the output of all Print sections, and modify Print sections (one
at a time), they may be used to create a Table Of Contents (TOC), as explained in the topic:
"Creating a Table Of Contents" on page908.
See "Post Pagination Scripts" on page906.
Loading data
Before you can add variable data fields to a template in the Designer, you need to have a Data
Model and a sample of customer data. At the design stage the Designer doesn't need to have
access to all data; it just needs to know which data fields exist in your data and it needs some
data to be able to display a preview of the output.
To get access to a Data Model and data, you can open:
l A data mapping configuration, see "Loading a data mapping configuration" on page775.
A Data Model and sample data are part of a data mapping configuration.
l A data file, see "Adding data from a data file" on page776.
l A database, see "Adding data from a database" on page779.
l A JSONfile, see "Adding JSON data from a JSON file" on page783.
When you open a data file or a database, the Data Model will be derived from it unless there
already is an open data mapping configuration; in that case, the current data mapping
configuration will try to retrieve data from the file or database, using its own Data Model and
extraction logic.
After opening a data mapping configuration or opening a data file or database, the Data Model
pane at the right hand bottom shows the data fields that occur in the data.
The Value column displays data from the first record in the data file. Use the First, Previous,
Next and Last buttons to browse through the records, or use the Page Up, Page Down, Home
and End keys.
Note that when data is loaded directly from a file or database, all values are strings.
Page 773