Incrementing a Read-Only Integer property
Content
We have an activity property (Integer type) that we want to use as a counter.
When the user select a value in an enum another property, the integer property will have a value of '2', otherwise the value is '0' (initial value). Once the form is submitted (with integer value = 2), that form is no longer visible, and a new form becomes visible.
In the new form we have the SAME integer property. When the user selects a value in an enum property (different enum property than the one in the previous screen) we want the value of the integer property to change from '2' to '3'. However OFSC does not recalculate a default value for a not-empty property (as per OFSC manual).
Tagged:
0