• Login

DataSoft Corporation

Report Items In Expressions DataSource

[ReportItems] is a list that provides access to all report items.

You cannot use the ReportItems collection in a Calculated Field's expression.

Variables

Variable

Description

Example

DataSource.RowCount

Returns the total amount of data rows in a data source.

[DataSource.RowCount] != 0

Result: When using this expression for a control's Visible property, the control is not displayed if there is no data in the data source.

DataSource.CurrentRowIndex

Returns a zero-based index of the current data row in a data source.

Iif([DataSource.CurrentRowIndex] % 2 = 0, 'red', 'green')

Result: When this expression is used for a table row's BackColor property, odd rows are colored in red and even rows - in green.

Thursday, 27 December 2018 Posted in Expressions Constants, Operators, and Functions