Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Electrical

Conditionally Change a Control's Appearance

  • Last UpdatedMar 30, 2022
  • 2 minute read

To conditionally change a control's appearance, follow these steps.

For more information on using styles in the Report Designer, refer to Styles Concepts.

  • Select the report by clicking anywhere on the blank area around its band. In the Property Grid, locate the Formatting Rules Sheet property and click the ellipsis. The Formatting Rule Sheet Editor is then displayed. This is used to manage and customise formatting rules, which then can be applied to the report's bands and controls.

    In this window, create a new formatting rule (click ), locate its Condition property and click the ellipsis.

  • In the displayed Condition Editor, define the required condition.

    To save the condition and close the window, click OK.

  • Now, define the formatting to be applied.

  • Select the band or control to which the formatting rule must be applied (in this example it is the reportDetail band), and in the Property Grid, locate the Formatting Rules property and click the ellipsis. In the Formatting Rules Editor that is then displayed, move the formatting rule from the Available Rules list to the Applied Rules list (using the > button) in order to apply the rule to the control.

It is possible to customise the precedence of formatting rules by using the up and down arrow icons at the right of the window. Rules are applied in the order that they appear in the list, with the last rule in the list having the highest priority.

Switch to the Preview tab to view the result.

TitleResults for “How to create a CRG?”Also Available in