2020.2

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
page343) 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.
Note
The locale influences the way dates, times, numbers and currencies are formatted; see
"Locale" on page327.
Formatting can be applied to values in a Dynamic Table via the data-format attribute. See:
Formatting values in a Dynamic Table.
You could also format data in a script using the formatter; see "Standard Script API" on
page780.
Date
Dates can only be formatted via a script. All data in the Data Model are strings; they have to be
converted to Date objects before applying a particular date format. See also: "Creating a Date
object from a string" on page790.
Font style
Text originating from variable data can be displayed in uppercase, lowercase or proper case.
Page 347