Example: Adding a background color using a script

You can apply properties to elements through script expressions so that the property values change based on the output data contained in them. This task provides general instructions for applying a background color using a script.

Procedure

  1. From the Palette view, select an element and drag it into the template content editor, such as a Text element.
  2. Drag an attribute from the data source schema to an element.
  3. Select the element.
  4. In the Properties view, select a property that allows a script, such as Text background color for a text element.
  5. Click the ellipsis.
  6. Select the Script expression tab.
  7. Enter a script.
  8. Click OK.
  9. Generate the output to test your changes.

Feedback