An expression is a string which defines a formula or criteria, that's evaluated at runtime. The expression may be a combination of variables, constants, strings, dates and operators/functions. For instance 1000 format `` gets 1,000.00 for US format, while 1.000,00 is displayed for German format.
![]() |
When working with dynamic data in tables, grids, reports, or hierarchical structures, it is often necessary to determine the position of each item within its context. The ConditionalFormat, ComputedField, FormatColumn, and FormatCell objects support a variety of auto-number expressions that help with numbering, tracking, and identifying item positions dynamically. These expressions allow for improved formatting, sorting, analysis, and conditional logic based on the placement of items.
The ConditionalFormat, ComputedField, FormatColumn, and FormatCell objects support auto-number expressions for items in the following ways (detailed below):
Additionally, it supports parent and root unary operators to access the values of parent or root items as explained:
These operators can be used in combination with predefined constants, operators, and functions as outlined here.
Usage examples:
The predefined operators for auto-numbering are:
In the following screen shot the FormatColumn("Col 1") = "1 index ''"
In the following screen shot the FormatColumn("Col 1") = "1 index 'A-Z'"
In the following screen shot the FormatColumn("Col 1") = "1 apos ''"
In the following screen shot the FormatColumn("Col 1") = "1 apos 'A-Z'"
In the following screen shot the FormatColumn("Col 2") = "'<b>' + 1 pos '' + '</b> ' + value"
In the following screen shot the FormatColumn("Col 2") = "'<b>' + 1 pos 'A-Z' + '</b> ' + value"
opos retains the item's original position in the unfiltered list, reflecting its place before the filter was applied.
pos updates to show the item’s position within the filtered list, based on the visible subset after filtering.
In the following screen shot the FormatColumn("Col 1") = "1 rpos ''"
In the following screen shot the FormatColumn("Col 1") = "1 rpos ':|A-Z'"
In the following screen shot the FormatColumn("Col 1") = "1 rpos '.|A-Z|'"
In the following screen shot the FormatColumn("Col 1") = "1 apos ''" and FormatColumn("Col 2") = "'<b><font Tahoma;10>' + 1 rpos '.|A-Z|' + '</font></b> ' + value"
number rindex 'format', number rapos 'format' and number ropos 'format' are working similar with number rpos 'format', excepts that they gives the index, absolute position, or the old child position.