- In the Infrastructure Administrator, do one of the following:
- Click Enterprise and connect to the enterprise industry model. Open a project.
- Click File and open an industry model drawing or template.
- Select the Industry Model node for the report.
- On the Administrator toolbar, click the Report Designer icon
.
- Create the report.
- Enter a function name in the ForeColor property of the text control instead of the color name (or HTML color) itself. For example,
{Fun.TreeColor}
- Create a function that calculates the color you want to set for each single record.
- In the report designer window, click .
- Click Add to add a new function. Enter the name, for example, TreeColor.
- In the Function pane, define:
if Me.Record.LngValue("status") = 1 then TreeColor = "red" else TreeColor = "black" end if
- In the designer window, select the text box and set the ForeColor property as follows: {fun.TreeColor}.