Indeed it was the problem! Don't why I forgot to load it!
Here's my working code.
Thanks a lot for your help.
Code:
Ext.define('TAB.controller.GraphOptions', { extend: 'Ext.app.Controller',
model: ['StandardGraphModel'],
stores: ['StandardGraphStore'],
views: ['GraphOptions','StandardGraph', 'GraphContainer'],
init: function () {
var me = this;
this.control({
'#generateChart': {
click: this.generateChart
}
})
},
generateChart: function (value){
var grid = Ext.getCmp('StandardGraphId');
var store = Ext.getStore('StandardGraphStore');
store.proxy.extraParams = {
codes: Global.codeListToLoad
}
store.load();
Ext.widget('graphcontainer').show();
}
}
});