我有一个 JSON 存储定义如下
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
}
});
样本数据是
[{"accountName":"'ABC'","quantity":100,"accountNumbers":['12345A','12345B','12345C']},{"accountName":"'XYZ'","quantity":100,"accountNumbers":['99999A','99999B','99999C']}]
如何动态创建商店accountNumbers
并分配给网格内的组合框?
谢谢塔拉汉