Dynamic Images
Dynamic images are called dynamic because they are switched, depending on the value of a data field. This way, a template can be adjusted to different customers.
Adding dynamic images
Dynamic images can be added to the template using the Dynamic Image Script Wizard only if you have:
- One or more data fields that contain values on the basis of which the images can be switched.
- An appropriate image for each group of customers. All files should be of the same type and they need to be stored in one folder (the Images folder on the Resources pane, or an external folder). It is important that they are named after the various possible values of the related data field. Adding dynamic images that are not named after a data field value requires a self-made script.
To use the Dynamic Image Script Wizard:
- Add one image to the template. See Adding images.
- 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 . If the image did not have an ID, it is automatically generated. The Dynamic Image Script Wizard composes a file name (including the path) based on the value of a data field, a prefix and a suffix: - The prefix shows the path of the image.
- The suffix states the file extension of the image.
- The file name is the value of the data field(s) in the Field column.
The prefix and suffix are derived from the current image.
- If necessary, enter another Prefix and/or Suffix.
- Click the first field in the column Field, and then click the downward pointing arrow. Select the data field to be evaluated.
Click the button Add, to add more fields if you want the file name to be composed of the value of several data fields. Note that only the suffix of the last data field should hold the file extension. The resulting file name, including the path and file extension, is assigned to the src (source) attribute of the image. You can click Options to verify this.
- Click Apply or OK. Now click the Preview tab and browse through the records to verify that the script works as expected.
Editing a Dynamic Image
To edit dynamic images added to the template earlier, right-click the image, or the space reserved for the dynamic images. Then click Dynamic Image to open the Dynamic Image Script Wizard again.
|
|