The following describes in which order expressions and actions are (re)calculated on a Rich Form.
On form loading:
- Initial value expressions for every field where defined
- Visible/Enabled/Required expressions where defined in order the respective component is on form (except sublist columns)
- All sublist column Enabled expressions
- Form load actions
On change of a field or sublist column:
- Dependent Calculated expressions on form fields
--> If any calculated expressions depend on this field it is recalculated first and then 1. to 4. for that field change are executed recursively - Dependent Calculated expressions on sublist columns
--> If any calculated expressions (i.e. totals) the form field or sublist column is recalculated first and 1. to 4. for that field or column change are executed recursively - Visible/Enabled/Required expressions where defined in order the respective component is on form (except sublist columns)
- All sublist column Enabled expressions
On saving form:
- Any pending recalculations are executed in execution order defined in "On change of a field or sublist column"
- Validation in the order the form fields are on the form
- Saving of the item for the form fields
- Saving of all sub items in the order of their sublists on the form