Skip to main content

Specifying Data Value Names

Version: 8.0

Specifying Data Value Names

When specifying the column to be used in a Report Element (like RecordBox or RecordArea) or in any Expression either the actual name of the column or the column index can be used.

Referencing the Column Name​

Using the column name in a RecordBox can be done by just specifying the actual name in the "Field" property of the RecordBox, for example:

ColumnName

Using the column name in a RecordArea or FormattedRecordArea can be done by placing the column name inside of the pound sign (#) in the elements Text property, for example:

Hello #ColumnName#,

If the Query needs to be specified, the QueryID can be used with the column name. Note that the QueryID must be that of the current query or of a parent query.  This is demonstrated as follows:

QueryID[ColumnName]

Hello #QueryID[ColumnName]#

Referencing the Column Index​

Similar to using the column name to reference a column, users can also specify the column index of a particular column. Using the column index in a RecordBox would be done by putting only the column index number into the "Field" property of the RecordBox, for example:

ColumnIndex

Using the column index in a RecordArea or FormattedRecordArea can be done by placing the column index number inside of the pound sign (#) in the elements Text property, for example:

Hello #ColumnInex#,

If the Query needs to be specified, the QueryID can be used with the column index. Note that the QueryID must be that of the current query or of a parent query.  This is demonstrated as follows:

QueryID[ColumnIndex]

Hello #QueryID[ColumnIndex]#

Notes About Using Column Index​

Only numeric values will be recognized as column indexes. Examples of valid uses for column index include:

0

#0#

Query1[3]

#Query1[3]#

Any values written in quotes (or double quotes) or strings that begin with numbers are still treated like column names not column indexes. Examples of column index attempts that will be interpreted as column names include:

2ndName

Query1["2"]