Conditions Example: Using the Data Table Column Element
A Data Table Column element's Condition attribute allows the column
to be displayed or hidden dynamically, based on criteria you set.
The example report definition shown above displays Product information in a Data Table. However, the display of sensitive data, such as the unit cost, needs to be restricted so that it can only be viewed by specific users. If the application starts by authenticating the user and classifying them using a Session variable before calling this report, sensitive data can be hidden, using a Condition attribute, from everyone except authorized users. The Unit Cost column will not be displayed at all unless the Condition evaluates to True.