... or is that not how it's intended? Not doing anything fancy, but want the valueField and displayField to come from a remote source. The examples all use a local (of obvious reasons). Do I have to define a Store obj with a reader and everything?
... or is that not how it's intended? Not doing anything fancy, but want the valueField and displayField to come from a remote source. The examples all use a local (of obvious reasons). Do I have to define a Store obj with a reader and everything?
This is how i get the data from sever
Hope it helps.
Code:var mystore=new Ext.data.JsonStore({ autoLoad: true, root:'records', totalProperty:'totalCount', fields:["id","name"], url:'server url', params: {}, id:"id", }); mystore.load();
Reading from a remote source requires a proxy (usually http proxy), and of course a reader for whatever data format chosen (json or xml). JsonStore is of course a preconfigured store that contains an http proxy and a json reader.
Thanks, pokerking - that's exactly what I was looking for. I was also looking at the community manual, and there's some examples of more complex data requests. I think it would be helpful if there was an example of what the format of the data sent should be.
Thanks!