This script builds the filter table and the report display table.

LUA object reporttable
The reporttable object represents the data display table.
reporttable.clearcolumns()
Deletes all the columns from the data display table.
reporttable.clearrows()
Deletes all the rows from the data display table.
reporttable.addtextcolumn(*fieldname*,*caption*,*width*,*visible*)
Adds a text column to the display table.
reporttable.addcheckcolumn(*fieldname*,*caption*,*width*,*visible*)
Adds a check column to the display table.
reporttable.adddatecolumn(*fieldname*,*caption*,*width*,*visible*)
Adds a date column to the display table.
reporttable.adddatehourcolumn(*fieldname*,*caption*,*width*,*visible*)
Adds a date and time column to the display table.
reporttable.addnumbercolumn(*fieldname*,*caption*,*width*,*visible*,*precision*,*sum*)
Adds a number column to the display table. You can set the number of decimals (precision) and whether the column shows a total at the bottom (sum).
reporttable.addcurrencycolumn(*fieldname*,*caption*,*width*,*visible*,*precision*,*sum*)
Adds a currency column to the display table. You can set the number of decimals (precision) and whether the column shows a total at the bottom (sum).
*value* = reporttable.countrows()
Returns the number of rows in the data display table.
*datarow* = reporttable.adddatarow()
Adds an empty datarow object to the data display table.
LUA object filtertable
This object represents the report’s filter table.
filtertable.clear()
Deletes all the filters from the table.
filtertable.addcategoryrow(*caption*)
Adds a category row to the filter table.
filtertable.adddaterow(*key*,*caption*)
Adds a filter row for dates.
filtertable.addcheckrow(*key*,*caption*)
Adds a filter row for checks.
filtertable.addintegerrow(*key*,*caption*)
Adds a filter row for integers.
filtertable.addnumberrow(*key*,*caption*,*precision*)
Adds a filter row for decimal numbers; you can specify the number of decimals (precision).
filtertable.addtextrow(*key*,*caption*)
Adds a filter row for free text.
filtertable.addsubtablerow(*key*,*caption*,*tablename*,*filter*)
Adds a filter row with a selection subtable.
filtertable.addlistrow(*key*,*caption*,*values*)
Adds a filter row with a list of values (values).
*value* = filtertable.getvalue(*key*)
Gets the value of a filter by its key.
filtertable.setvalue(*key*,*value*)
Sets the value of a filter row by its key.
