getting error : Uncaught TypeError: Cannot read property 'Settings' of undefined
What am I not seeing?
What am I not seeing?
Code:
//Settings.js (path /Inquiry/app/config) Ext.define('Inquiry.config.Settings',{ singleton: true, config: { balsheetAuthority: 'Y' }, constructor: function(config){ this.initConfig(config); } }); //app.js Ext.Loader.setConfig({ enabled: true }); Ext.create('Ext.app.Application', { controllers: ['Main'], stores: ['Companys', 'Departments','Gltrans','Years','Periods','Trialbalances','Rglmst','AcctTrialBals','DetailTrialBals','Notes'], name: 'Inquiry', appFolder: '/html/nocs-dev/GenLedger/Inquiry/app', launch: function() { Ext.Ajax.request({ url: 'vvcall.pgm', params: { pgm: 'glapp', action: 'getSettings' }, success: function(response) { var data = Ext.decode(response.responseText); Inquiry.config.Settings.setBalsheetAuthority(data.balsheetAuthority); Ext.create('Inquiry.view.Viewport'); } }); } });
Comment