View Full Version : Get data from JsonStore

25 Nov 2011, 12:14 AM
I am loading a JsonStore with autoLoad and on callback i need to get the data out of the store. e.g. my response is like:

"chartData": [

can i get "xyz" from this store as an array like [1, 11, 21, 31, 41, 51, 61] without iterating?

25 Nov 2011, 8:51 AM
No matter if there was a simple method to execute on the store to do this, it would have to iterate through it's data to create that Array. But there isn't a simple method so you will have to do a store.each() and create your Array. Unless you have thousands of records, it will be pretty fast.