Create a store from a subset of the JSON Store

I have a JSON store defined as follows

var subAccountStore = new Ext.data.JsonStore({
  autoLoad: true,
  proxy: {
    type:'ajax',
    url : '/opUI/json/subaccount.action?name="ABC"'
  },
  fields: ['accountName', 'quantity','accountNumbers'],
  listeners: {
    load: function(store, records, success) {
      // ???????
    },
    single: true
  }
});

      

and sample data

[{"accountName":"'ABC'","quantity":100,"accountNumbers":['12345A','12345B','12345C']},{"accountName":"'XYZ'","quantity":100,"accountNumbers":['99999A','99999B','99999C']}]

      

How do I create dynamic storage for accountNumbers

and assign a combo box inside a grid?

Thanks Tharahan

+3
json javascript extjs4


source to share


No one has answered this question yet

Check out similar questions:

9653
What is the correct JSON content type?
7494
How can I remove a specific element from an array in JavaScript?
6956
Can comments be used in JSON?
5722
How can I remove a property from a JavaScript object?
5129
How do I return a response from an asynchronous call?
3915
Why does Google add while (1); into your JSON responses?
3842
Create GUID / UUID in JavaScript?
2858
How can I print JSON in a shell script?
2480
How do I send JSON data using Curl from terminal / command line to Test Spring REST?
1986
What is JSONP and why was it created?



All Articles
Loading...
X
Show
Funny
Dev
Pics