DataElement Forms
Each DataElement has a form to create or edit instances.
Disabling or Hiding Fields
FieldsFieldA property of a DataElement expanded to a database column and user interface input element. can be disabled or hidden in the forms by adding options to the model.
FieldHide this fieldFieldA property of a DataElement expanded to a database column and user interface input element. in all forms
<options>
<cruds.form.hide/>
</options>
FieldHide this fieldFieldA property of a DataElement expanded to a database column and user interface input element. on the create form
<options>
<cruds.form.hideOnCreate/>
</options>
FieldHide this fieldFieldA property of a DataElement expanded to a database column and user interface input element. on the edit form
<options>
<cruds.form.hideOnModify/>
</options>
FieldDisable this fieldFieldA property of a DataElement expanded to a database column and user interface input element. in all forms
<options>
<cruds.form.disable/>
</options>
FieldDisable this fieldFieldA property of a DataElement expanded to a database column and user interface input element. on the create form
<options>
<cruds.form.disableOnCreate/>
</options>
FieldDisable this fieldFieldA property of a DataElement expanded to a database column and user interface input element. on the edit form
<options>
<cruds.form.disableOnModify/>
</options>
Filtered LinkField dropdowns
FieldFilters the options of another LinkField based on the value selected in this fieldFieldA property of a DataElement expanded to a database column and user interface input element..
E.g. say we have a Customer and an Address DataElement, where a customer has multiple addresses. If we select a Customer in a form, we want to only be abe to select Addresses linked to that Customer.
The value of the option should correspond to linkTarget: "$targetField$", finder: "$finderForTargetElement$", finderField: "$fieldToUseInFinder$".
linkTargetis the name of the fieldFieldA property of a DataElement expanded to a database column and user interface input element. that should be filtered.finderis the finderFinderA search specification combining field-operator pairs to execute standard data queries on a DataElement. that should be used to find the filtered options.finderFieldis the fieldFieldA property of a DataElement expanded to a database column and user interface input element. in the finderFinderA search specification combining field-operator pairs to execute standard data queries on a DataElement. that contains a reference to the current fieldFieldA property of a DataElement expanded to a database column and user interface input element..
The option has another, outdated, way to define the value:
{linkDriverField}_{targetField}.{finderField}_{finder}
Here linkDriverField should be the name of the FieldFieldA property of a DataElement expanded to a database column and user interface input element. with the isLinkDriver option.
<options>
<isLinkDriver>linkTarget: "address", finder: "findByCustomerEq", finderField: "customer"</isLinkDriver>
</options>
<options>
<isLinkDriver>costumer_address_findByCustomerEq</isLinkDriver>
</options>
<options>
<isLinkDriver>customer_address.customerField_findByCustomerEq</isLinkDriver>
</options>