Table Class
Class methods
- table = new Table();
- table = Table.create(cnames,ctypes)
Instance properties
- integer = table.nrows;
- integer = table.ncols;
Instance methods
- table.addColumn(cname,ctype,data)
- value = table.cell(r,c)
- array = table.row(r)
- array = table.column(c)
- table.insertColumn(cname,ctype,data,c)
- table.deleteColumn(c)
- table.scaleColumn(c, factor)
- table.addRow(row)
- table.sort(sortcol,reverse)
- table.pivotTime(time,sub,value)
- table.pivotCategory(cat,sub,value)
- table.printCSV(includeHeader)
- table.printHTML(includeHeader)
The following table printing functions cannot be used in reports. Instead the table is added to the Report instance, to be rendered in the output according to the format chosen for the report as a whole.
Notes
The printCSV() and printHTML() arguments can take additional arguments, in case you want to change the formatting:
- table.printCSV(includeHeader,dateformat,numberformat)
- table.printHTML(includeHeader,dateformat,numberformat)