i want to call store of a chart from the init() function in controller. I want to create an instance of store of a chart in the controller. here is my code ..
Ext.define('Gamma.controller.ControlFile', {
extend: 'Ext.app.Controller',
//define the stores
stores: ['BarColumn', 'RadarView',
'VoiceCallStore', 'SMSCallStore',
'MMSCallStore', 'GPRSUsageStore'],
//define the models
models: ['BarCol', 'radar',
'VoiceCallModel', 'SMSCallModel',
'MMSCallModel', 'GPRSUsageModel'],
//define the views
views: ['BarColumnChart', 'LineChart',
'RadarChart', 'VoicePie',
'SMSPie', 'MMSPie', 'GPRSPie'],
init: function () {
this.control({});
}
});
Please any one help me..
That's an easy one:
var store = this.getStore('storeName');
Where this
is your controller.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.