-
Unanswered: How do I define a getter on a Model?
Unanswered: How do I define a getter on a Model?
I meant to type "How do I define a getter on a Model FIELD?" 
1. it's not convert(), that's actually setter.
2. it would have to work with BasicForm.loadRecord(), so that I can display the field automatically.
loadRecord seems to read off of the model.data object
thanks
-
override the get function of Ext.data.Model, its my idea, but Iam not expert in Extjs!
get: function(field) {
var result = this.callParent(arguments);
//your code
return result;
},
-

Originally Posted by
ultra2
override the get function of Ext.data.Model, its my idea, but Iam not expert in Extjs!
get: function(field) {
var result = this.callParent(arguments);
//your code
return result;
},
Thanks, but that doesn't work with form.loadRecord()
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us