Class TableEdit

Remarks for Developers

(c) Jakub Adámek, Econnect, September 2002

$Id: tabledit_developer.html 4817 2023-11-28 16:32:10Z honzam $

Row keys

To identify each record a unique key of the table is used. If the key consists of several fields, the field values are separated by colon. If the values contain a colon, it is escaped by #, i.e. ":" -> "#:".

The new record is identified by __new__.

Global parameters

string set_tview

Change the viewID of the shown TableView to this one.

array cmd

Array (viewID => viewCmd), where viewCmd in turn is an array with the following possible parts:

viewCmd["show_new"] = 1
show only a new record form (no other records)
viewCmd["update"][$key] = 1
insert or update the record identified by $key
viewCmd["run_delete_all"] = 1
delete all checked records
viewCmd["delete_all"][$key] = 1
delete this record, if viewCmd["run_delete_all"] == 1
viewCmd["edit"][$key] = 1
show only this record. Used with Edit views. If the "where" restrictions do not include this record, nothing is shown.

array val

Values of all records on the screen (record_key => recordVal), where record_key is the key as described above and recordVal is an array (field_alias => field_value).