I need to override setValue method for a formitem. I see that is is being called twice once with null and once with the value from the server. Looks like first call is part of drawing the form and resetting (clearing) the forms. Will it always be called twice? Is there way to distinguish between the two calls?
One more question:
with in the overridden setValue, I am calling super.setValue but it agains call this function but again with that logic, it should be recursive but that is also not the case. I am confused a bit here how setValue works.
I will appreciate your help.
One more question:
with in the overridden setValue, I am calling super.setValue but it agains call this function but again with that logic, it should be recursive but that is also not the case. I am confused a bit here how setValue works.
Code:
setValue : function(value) { if(value && value.periodValue) { value = value.periodValue.preset.value; } this.Super("setValue", value); }
Comment