onDataChange and saveData

Don’t know how to describe this, therefore the maybe ‘slightly’ off subject:

I have a field on a form with a tab with a related table. The field has a method onDataChange

I change the value in the field but ‘forget’ to step out.

When you now use the controller to step through the rows there is no issue, the method is fired.

When I step through the related records on the tab, the method is not (and never) fired…

I have a similar problem… I have one combo that fires a method onDataChange. If you play around with it (changing values back and forth) you can manage to change the value but not leave the field and then the method is not fired.

For both. it would be nice to have a small example solution that demonstrates this.

for example, marcel, on which form is that field with data change?
the main form or the related form in the tab?

Johan, the field I try to change is on the main form, I will see if I can upload a test solution this evening…

Here it is. test.servoy…

When you change the circled (if you can call it a circle) field without exiting and click in the left table you will see (9 out of 10 secure) that the field gets updated but the method is not fired…

fixed in 2.0RC7
The changed value didn’t never get saved..

Thanks again Johan :D

I have a checkbox setup to hide extra search options when unchecked.
When I load the form for the first time and click on the checkbox, the check gets placed, but the method doesn’t fire.

However everytime I click the checkbox thereafter the method executes fine.

Sounds like this bug is back?!

We tested this in the example crm addresses tab form on one of the checkboxes and are unable to reproduce this.
Could you post a small sample solution demonstrating this problem?

Not sure what was causing it to happen, it may have been related to the form not properly loading due to a valuelist problem that was in another post. I think you are ok on this now.