I am having trouble with Ext.data.ArrayStore. I have one defined as so:
var store = new Ext.data.ArrayStore({
fields: [
'myIdField',
'myDataField'
],
idProperty: 'myIdField'
});
store.add(new store.recordType({
myIdField: 'a',
myDataField: 'SomeData'
}));
However, when I do
var myInsertedRecord = store.getById('a');
the value of myInsertedRecord is 'undefined'.
Am I misunderstanding how does the setting o the record id work?