PDA

View Full Version : getFields under model



tomalex0
1 Sep 2011, 10:59 PM
I'm trying to get fields underlying each model. Is there any inbuilt function that i'm missing :-?

I tried using this and i'm still stuck

Ext.ModelMgr.getModel('Contacts')



Ext.regModel('Contacts', {
fields: [{
name : 'firstName',
type : 'string'
},{
name :'lastName',
type : 'string'
},{
name : 'ID',
type : 'int'
}],
proxy: {
type: 'memory',

},
writer: {
type: 'json'
}
});



Can anyone help me with this

Thanks