tWebRow
See Also: tWebCell, String, Declaring Variables, Struct
Purpose
tWebRow is a structured type that is used to represent information about a row in Web Application Framework lists and grids.
Type Declaration
Struct tWebRow
String sRowID
String sCssClassName
tWebCell[] aCells
Integer iGroupHeaderIndex
End_Struct
Struct Members
-
sRowId
Unique identifier of the grid row. For data-aware grids, this is the serialized RowId from the main table. -
sCssClassName
CSS class name that is applied to this row. It can be used to style the row and, when combined with the column CSS class, to style individual cells. -
aCells
Array of tWebCell with details for each column in the grid. -
iGroupHeaderIndex
Index of the group header if grouping is used. See WebList Grouping for details.
Sample
This sample shows how to get the number of tWebCell[] array elements from a single tWebRow struct:
tWebRow[] aTheRows
Integer iCount i
Move (SizeOfArray(aTheRows[i].aCells)) to iCount
// now you can use iCount to loop through the tWebCell array members
For i From 0 to (iCount - 1)
// do something with each tWebCell member
Loop
Syntax
Use tWebRow.pkg
:
tWebRow {variableName}
Declaring Variables
To declare tWebRow variables, use the name of the type (tWebRow) followed by the variable name.
tWebRow MyWebRow
See struct variables for more details on instantiating struct types.