We have a problem that in a certain situation the onDataChange event is triggered twice. Reproducable when:
you have a table view
ondatachange event on some field
if you have calculations on the form table
If you don’t have calculations on the form table, the onDataChange event works correctly, so it seems that triggering the calculations on a table view makes the onDataChange event trigger twice. (doesn’t happen with list view)
we are testing this with bizlaf from centigrade, I thought it could be a problem with the LAF, but it seems to also happen with other LAFs. So maybe this is a Servoy bug?
we tested this on Servoy 6.0.4 - build 1227, and the newly released 6.0.5 - build 1230.
Finally had the chance to try everything and found the problem :
The problem of the onDataChange event getting fired twice happens when the field has a GlobalMethodValidator set. When set, and when the onDataChange field is set on a table view, the onDataChange event gets triggered twice.
I will open a case with sample solution. (Done: SVY-1542)