Comments: on this page. Click to read or post your own.

/sapphire/forms/TableField.php

Description

TableField behaves in the same manner as TableListField, however allows the addition of fields and editing of attributes specified, and filtering results.

Caution: If you insert DropdownFields in the fieldTypes-array, make sure they have an empty first option. Otherwise the saving can't determine if a new row should really be saved.

Caution: TableField relies on {@FormResponse} to reload the field after it is saved. A TableField-instance should never be saved twice without reloading, because otherwise it can't determine if a field is new (=create) or existing (=update), and will produce duplicates.

  • todo: We should refactor this to support a single FieldSet instead of evaluated Strings for building FormFields
Classes
Class Description
TableField TableField behaves in the same manner as TableListField, however allows the addition of fields and editing of attributes specified, and filtering results.
TableField_Item Single record in a TableField.
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:46:30 +1300 by phpDocumentor 1.3.2