2019.2

Table Of Contents
Tip
Hover over the name of a script in the Scripts pane to highlight parts of the template that
are affected by the script.
l
The guid script adds data to the guid field. This is a hidden field. It is only visible in the
Source view.
l
The result of the form action script is added to the form's action attribute. To see how
that is done, double-click the script; then click Options.
l
The Year script puts the current year in the footer of the page. This is a custom script. For
more information about writing scripts, see: "Writing your own scripts" on page853.
The report
The COTG Timesheet Report template contains a Print context with one Print section:
Section 1 (see "Print sections" on page487) and one Master Page (see"Master Pages" on
page505).
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 page801.)
The template also contains a detail 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 "Detail Table" on
page818.
The data mapping configurations
This project has two data mapping configurations, made with "The DataMapper" on page225.
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
Page 183