lcurrens
16 Feb 2012, 12:14 PM
I'm having difficulty working with data stores that are not reading JSON data (as in the examples).
I have an array of data in memory. It will look something like this:
[{
PROP1: 'val1',
PROP2: 'val2'
},
{ PROP1: 'val3',
PROP2: 'val4'
}]
I want to attach this data to a store, then set that store on a List. I'm having some difficulty with this.
I have tried creating a store with a Memory proxy and an Array reader.
Do I need fields on the store to match "PROP1" and "PROP2"? Or should I set a model on the store?
Is there an example of using a memory proxy somewhere? What about XML reader examples?
I have an array of data in memory. It will look something like this:
[{
PROP1: 'val1',
PROP2: 'val2'
},
{ PROP1: 'val3',
PROP2: 'val4'
}]
I want to attach this data to a store, then set that store on a List. I'm having some difficulty with this.
I have tried creating a store with a Memory proxy and an Array reader.
Do I need fields on the store to match "PROP1" and "PROP2"? Or should I set a model on the store?
Is there an example of using a memory proxy somewhere? What about XML reader examples?