朝、
次のようにコントローラーにストアを作成しました。
var storeCompanies = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
type: 'GET',
url: url+'dashboard?Uid='+uid+'&Ude='+ude,
reader: {
type: 'json',
root: 'root',
totalProperty: 'total'
},
headers: {
'Accept' : 'application/json;application/x-www-form-urlencoded',
'Content-Type' : 'application/x-www-form-urlencoded',
},
}),
root: 'd',
type: 'localstorage',
autoLoad : true,
id: 'company_Id',
scope : this,
fields: ['Name']
});
console.log(storeCompanies);
コンソール ログは、ストアが作成され、適切に設定されていることを示しています。ドロップダウンのすべての値を取得する必要があります。
これを試しましたが、未定義が返されました。私が見つけた他のすべての情報は、1 つの値だけを見つける方法を示しているようです。すべてのデータを取得する最も簡単で効率的な方法は何ですか?