Major
#26586
Direct updating of calculated attributes in forms and grids when editing input values
If the input values of a calculated attribute are displayed together with the attribute itself on a form / in a form table, changing the input values has not yet led to an update of the result.
Even when the input values are "transferred" to the persistence, the result is not updated. This means that checks based on this result do not work on the current value and may allow invalid values to be saved. Checks can therefore not refer to calculated attributes, but must replicate their calculation in the check.
The result is only updated when switching from edit mode to view mode.
Improvement
Immediately after entering a value that is used in the calculation of another attribute value, the calculated value should be updated in the form or table column. Any checks that refer to the calculated value should always use the current value.
Test
- /com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/model/attribute/TestDirectUpdateOfDerivedAttribute.script.xml