How to extract the data from data.store to an array?
- by Prateek Raj
Hi everyone,
i have the class
var prstore = new Ext.data.Store({
url: 'xmlformat.xml',
autoLoad: true,
reader: new Ext.data.XmlReader({
record: 'price'
}, [{name: 'Pri', mapping: '@rate'}])
});
the data which is stored in the "prstore",i want it to copy it into an array.
something like
var hello = [];
hello = prstore.getrange();
but it's not working for me
please help
thank you