Tableview

The tableview object identifies an editing grid of the data present in the form, such as the rows of an invoice.

The tableview can only be saved from the father dataview object if present.

rowinvoice = customerview.getatable("invoice_rows")

for i=10,1,-1 do

row = rowinvoice.adddatarow()

row.setvalue("code",i)

end

customerview.save()

tableview.update()

Updates the table by also forcing colculation expressions.

*datarow* = *tableview*.adddatarow()

Creates a new datarow object by adding a row to the grid.

*value* = tableview.countrows()

Returns the current number of rows.

*datarow* = tableview.getrows()

Returns the list of rows.

*datarow* = tableview.adddatarow()

Adds a new row.

*dataview* = tableview.dataview()

Returns its dataview if present.

tableview.showwarning(*message*)

Shows a warning message.

tableview.showconfirm(*message*)

Shows a confirmation message.

tableview.showerror(*message*)

Shows an error message.

*value* = tableview.tablename()

Returns the name of the table.