Property initializers

The default values of some properties are set dynamically. Such properties may include an initializer, which defines how the property's default value is determined.

For example, details from the database meta-schema (such as sqltype, notNull, or required) can be used to populate the default values for some of the form item properties.

If the property has an initializer option, an Initializer button (letter "i") appears to the left of the Reset value button. Click this button to display the property initializer dialog, where you can set or edit the property's initializer value.

For example, select a form item that has a fieldType set to TABLE_COLUMN, such as an Edit field. For this form item, the notNull property has an initializer formula that sets its default value. You can edit how the default value is calculated by opening the notNull initializer dialog and entering a new formula. See Figure 1.

Figure: Initializer for notNull property

This figure shows an example of a property with an initializer. The property is "notNull". There is a red circle around the Initializer icon, and an arrow pointing to the notNull initializer dialog. In the notNull initializer dialog, the initializer is defined as "dbschema:$(sqlTabName).$(colName)/@notNull".

When the initializer option is set for a property, the property name and the Initializer button are displayed in bold.

If you enter a value for the property, then the initializer is not used.

Important:

Do not confuse the initializer property of the ComboBox form item with the property initializer dialog. They are distinct, unrelated concepts.