extjs - How do I retrieve all data from jsonstore in sencha -


morning,

i have created store in controller this:

    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); 

the console log shows store being created , populated properly. need retrieve values dropdown.
tried this returned undefined. other info have found seems instruct on how find 1 value. what's easiest , effecient way retrieve data?

storecompanies.on('load', function() {     console.log(storecompanies.data); //<--- data ext.util.mixedcollection }); 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -