2020.2

Table Of Contents
l One or more data fields that contain values on the basis of which the images can be
switched.
l An appropriate image for each case. All files should be of the same type and they need to
be stored in the same location (the Images folder on the Resources pane, a folder on
disk, or online). It is important that they are named after the various possible values of the
related data field.
Otherwise, adding dynamic images requires a self-made script (see "Writing your own scripts"
on page853).
To use the Dynamic Image Script Wizard:
1. Add one image to the template. See "Adding images" on page710.
2.
Right-click the image and click Dynamic Image. Or select the image and click Source
(not the field, but the label before the field) in the Attributes pane.
The Dynamic Image Script Wizard opens. The image's ID is used as the script's selector.
If the image did not have an ID, it is automatically generated.
3. Select the location of the files:
l
Select Resources if the images reside in the Images folder on the Resources
pane.
l
Folder on disk refers to a folder on a hard drive that is accessible from your
computer. Click the Browse button to select a folder.
As an alternative it is possible to enter the path manually. You can give a local path
(e.g. C:\Images\) or use the "file" protocol. The complete syntax of a fully qualified
URL with the "file" protocol is:file://<host>/<path>. Note: if the host
is"localhost", it can be omitted, resulting infile:///<path>, for example:
file:///c:/resources/images/.
l
Online requires you to give a specific web address (for example,
http://www.mysite.com/images/).
4. The Dynamic Image Script Wizard composes the file names (including the path) based on
the selected location, the prefix, the value of a data field, and the suffix. The variable
part of the file names is the value of the data field(s) in the Field column. The prefix and
suffix are meant to contain static parts of the file names.
Click the first field in the column Field, and then click the downward pointing arrow.
Select the data field to be evaluated.
If you want the file name to be composed of the value of several data fields, simply click in
the next row or click the Add button. This adds a row. Note that the rows will be
Page 800