Using the latest lgpl version.
Is normal this behaviour?
When inside a changed event of a comboxitem i hide another field , then changed is called again.
without the hide call , CHANGED is called one time and record is correctly defined.
With the call to hide , changed is called twice and the second time the combobox field goes empty and record is undefined.
Why?
A little investigtion , looks like when a field is hidden al the form need to be repainted , but why changed its called again?
Is normal this behaviour?
When inside a changed event of a comboxitem i hide another field , then changed is called again.
Code:
changed: function(form, item, value) {
var record = item.getSelectedRecord();
myForm.getItem("aField").hide();
}
With the call to hide , changed is called twice and the second time the combobox field goes empty and record is undefined.
Why?
A little investigtion , looks like when a field is hidden al the form need to be repainted , but why changed its called again?
Comment