Let us assume, there is a JsonStore :
SomeStore = Ext.extend(Ext.data.JsonStore, {
constructor: function(cfg) {
cfg = cfg || {};
OrdersStore.superclass.constructor.call(this, Ext.apply({
storeId: 'someStore',
url: 'someUrl',
root: 'rows',
fields: [
{
name: 'someId'
defaultvalue : '100'
}
]
}, cfg));
}
});
How can I do this:
new SomeStore().getFieldByname('someId').setDefaultvalue = '73'
What is the proper syntax for this?