Portlet Factory, Version 6.1.2
Using loop variables
The Dynamic Table builder provides a set of loop variables for other builders to use to define builders within a table. The table loop variable is significant only during table processing time. It is not used in any other setting. Do not use table loop variables if the builder will not be placed within a table. Note the following:
- LoopVariable/TableName/RowData
- Holds row data for the row under processing. This provides a way for a builder to use the table's source data. For example, a Link builder can specify its display text and its href value from two different columns of the table.
- LoopVariable/TableName/RowIndex
- The row index that is under processing in the table.
Note: In a sorted table, this index is the original row index of the table data. It can be used to get the right data from the original table data source for the builder in the cell. This variable is useful when table data is located in multiple sources that are broken up into columns.
- LoopVariable/TableName/DisplayRowIndex
- The display row index that is under processing. In the case of a sorted table, this index will be different from the row index. Use this variable to get data from a source that is unrelated to the table data source.
Parent topic: Accessing table data
Library | Support |