2022.1

Table Of Contents
Tip
l An example of how to create an address block using the Text Script Wizard is
described in a how-to; see How to create an Address Block.
l To use only part of a data field, or to split the data, you will have to write a script. For
an example, see this How-to: How to split a string into elements.
Formatting variable data
When a Text Script, made with the Text Script Wizard (see "Using the Text Script Wizard" on
page849) adds variable data to a template, it can easily change the way the data are formatted
as well. This is done in the Text Script Wizard through a special formatting modifier or a format
mask for each field that the script adds to the template.
The available formatting functions depend on the data type of the corresponding field in the
Data Model. In a data mapping configuration you can set the data type of each field. When you
open a data file or database without a data mapping configuration, all fields are text fields
(fields of the type string).
When the software warns about a mismatch between the type of a field in the wizard and in the
current data model, click the Refresh Types button to update field types in the wizard to match
the types in the data model.
Note
The locale influences the way dates, times, numbers and currencies are formatted; see
"Locale" on page828.
Formatting can be applied to values in a Dynamic Table via the data-format attribute. See:
"Formatting values in a Dynamic Table" on page875.
You could also format data in a script using the formatter; see "Standard Script API" on
page1343.
Page 853