2022.1

Table Of Contents
The report
The COTG Timesheet Report template contains a Print context with one Print section:
Section 1 (see "Print sections" on page518) and one Master Page (see"Master Pages" on
page537).
Personalization is mostly done via simple text scripts. Such scripts look for a text surrounded
by @ (e.g. @city@) and replace that by the correct data. To add a text script you just drag-and-
drop data onto the template. (See: "Variable Data" on page846.)
The template also contains a dynamic table which is filled and expanded dynamically by the
scripts in the Table folder. To learn how to insert and edit such a table, see "Dynamic Table" on
page866.
Note that this table does not use one of the default table styles, and that the style sheet with the
default table styles is not present in the template. To add that style sheet to the template, insert
a table using the Dynamic Table wizard.
The data mapping configurations
This project has two data mapping configurations, made with "The DataMapper" on page221.
To open one of them, select File > Open from the menu in the Designer and browse to the
Configurations\Resources folder.
COTG Timesheet Form
The COTG Timesheet Form data mapping configuration is designed to extract data from the
sample data file (Sample Data.xml).
The configuration also adds two fields to each record, using JavaScript: a unique ID (guid) and
a field that contains the action of the Form.
Note that the COTG account is the same in all of the records in the sample data. It is inserted
into the sample data by the Sample Project.
COTG Timesheet Report
The COTG Timesheet Form data mapping configuration is designed to extract the data that are
submitted via the app. It first extracts the common fields, and then the information from the rows
in the form, in a loop. For information about how to extract a variable number of similar
elements from an XML file, see: "From an XML file" on page267.
Page 154