Field

The Field item type defines a generic form field for data input or display that is defined in database schema files.

Example

This figure shows an example of a Field widget.

Figure 1. Field

Properties

comment, defaultValue, fontPitch, hidden, notNull, noEntry, required, sample, style, sizePolicy, tag, tabIndex

Usage

This item type defines a generic form field for data input or display. The real item type (i.e. the widget) and the attributes must be defined in the database schema files.

The definition of the form field is determined by the .val database schema file, based on the field-name (table.column). The item type (Edit, ComboBox, etc) is defined by the ITEMTYPE attribute in the .val schema file.

By using this form field specification, you can centralize the definition of form fields in the database schema file, to enforce reusability. You can, for example, specify that the "order.state" database column is a ComboBox, with a list of items, as if the field was defined directly in the form.

It is also possible to use the properties defined in the database schema files with other Form Item types.

The properties defined directly in the form take precedence over the properties defined in the database schema files.

The database schema files can be edited manually or by using the Meta-schema Manager.