A WOTable is a container element similar to a WORepetition that repeats its contents (that is, everything between the <WEBOBJECT...> and </WEBOBJECT...> tags in the template file) a given number of times. It differs from a WORepetition in that it displays the contents as a multi-column table. You can use a WOTable to create dynamically generated banks of check boxes or radio buttons. The WOTable displays the items in list from left to right and wraps around to the next line when the number of columns reaches maxColumns.

WOTable {list=anObjectList; [item=anIteratedObject;] maxColumns=aNumber;
[index=aNumber;] [col=aNumber;] [row=aNumber;] [tableBackgroundColor=hexString;]
[border=aNumber;] [cellpadding=aString;] [cellspacing=aString;]
[rowBackgroundColor=hexString;] [cellBackgroundColor=hexString;] [cellAlign=aString;]
[cellVAlign=aString;]
[tableWidth=aNumber;] [cellWidth=aNumber]};
Array of objects through which the WOTable iterates.
Current item in the list array. (This attribute’s value is updated with each iteration.)
Number of columns in the table.
Index of the current iteration of the WOTable. (This attribute’s value is updated with each iteration.)
Current column in the table. (This attribute’s value is updated with each iteration.)
Current row in the table. (This attribute’s value is updated with each iteration.)
Specifies the background color of the table. This attribute is passed to the TABLE HTML tag.
Specifies the width, in pixels, of the table border. This attribute is passed to the TABLE HTML tag.
Specifies the spacing between cells of the table. This attribute is passed to the TABLE HTML tag.
Specifies the spacing within cells of the table. This attribute is passed to the TABLE HTML tag.
Specifies the background color for each row. This attribute is passed to each TR HTML tag in the table.
Specifies the background color for the cells. This attribute is passed to each TD HTML tag in the table.
Specifies the horizontal alignment of each cell. This attribute is passed to each TD HTML tag in the table.
Specifies the vertical alignment of each cell. This attribute is passed to each TD HTML tag in the table.
The width of the table. This attribute is passed to the HTML TABLE tag.
The width of the cells in the table. This attribute is passed to each HTML TD tag in the table.
Last updated: 2004-12-02