Conditionally Change a Control's Appearance

<< Click to Display Table of Contents >>

Raynet One Data Hub > 14.0 > Dashboards and Reports Customization Guide > Designing Reports > Shape Report Data > Specify Conditions for Report Elements 

Conditionally Change a Control's Appearance

This document describes how to change a report control's appearance based on a specific condition.

 

1.Switch to the Report Explorer panel, select the Styles node and click Add New Style to create a new visual style.
 
eurd-web-shaping-create-new-report-style
 

2.Click the created style and select Properties.
 
eurd-web-edit-style
 

3.In the Properties panel, customize the created style's appearance settings.
 
eurd-web-shaping-customize-style-settings
 

4.Create another style 'xrControlStyle2' with default settings.
 

5.Select a report element to which you wish to specify a style selection rule (a table row with a cell bound to the 'UnitPrice' field), switch to the Expressions panel, and click the ellipsis button next to the Style Name property.
 
eurd-web-shaping-style-name-expression-property
 

6.In the invoked Expression Editor, specify the style switch condition:
 
Iif( [UnitPrice] >= 30, 'xrControlStyle1','xrControlStyle2')

 

![](../../../../images/eurd-web-shaping-style-condition-expression.png)

 

1.Switch to Print Preview to view the results.
 
eurd-web-shaping-change-appearance-result

2.