Initializing values
This section describes options that provide a default value for FieldsFieldA property of a DataElement expanded to a database column and user interface input element..
These options will handle both data persistence and user interface behavior regarding default values.
FieldProvides a default value for a ValueField that has a boolean, numeric or string type. The value is assigned as default in the data layerLayerLogical separation of functionality within a single system/application, focused on code organization. and also as the initial value in forms in the Knockout UI.
In case of a string, the value must be surrounded with quotes.
- Boolean:
defaultValue: true. Setstrueas the initial value for a Boolean fieldFieldA property of a DataElement expanded to a database column and user interface input element.. - Number:
defaultValue: 5. Sets5as the initial value for a number (Integer, Long, Double...) fieldFieldA property of a DataElement expanded to a database column and user interface input element.. - String:
defaultValue: 'new name'. Setsnew nameas initial value for a String fieldFieldA property of a DataElement expanded to a database column and user interface input element..
<options>
<defaultValue>'New Value'</defaultValue>
</options>
FieldCauses a new UUID to be generated and stored in this fieldFieldA property of a DataElement expanded to a database column and user interface input element. whenever a new instance is created. Use value "if_empty" to generate a UUID only if no value was passed to the create method in the details object.
<options>
<generateUuid/>
</options>
<options>
<generateUuid>if_empty</generateUuid>
</options>
FieldFieldFieldA property of a DataElement expanded to a database column and user interface input element. is initialized as null. Useful for Dates.
<options>
<isNullable/>
</options>