When using the following in a MVC app, does it "have to" be set during the launch function in the app.js, or can it be set at anytime?
Ext.define('ImageInquiry.config.Settings',{
singleton: true,
config: {
emailAuthority: 'N',
faxAuthority: 'N',
addNotesAuthority: 'N',
detailmaintAuthority: 'N',
detailinfoAuthority: 'N',
zoptAuthority: 'N',
routeAuthority: 'N',
auditAuthority: 'N',
scanAuthority: 'N',
uploadAuthority: 'N'
},
constructor: function(config){
this.initConfig(config);
}
});
I did an Ajax.request to get the settings (after launch) and when I tried to use the following in my view.js for my grid I got an error that the setting was not found.
hidden: (ImageInquiry.config.Settings.getEmailAuthority() ==='N') ? true : false
Ext.define('ImageInquiry.config.Settings',{
singleton: true,
config: {
emailAuthority: 'N',
faxAuthority: 'N',
addNotesAuthority: 'N',
detailmaintAuthority: 'N',
detailinfoAuthority: 'N',
zoptAuthority: 'N',
routeAuthority: 'N',
auditAuthority: 'N',
scanAuthority: 'N',
uploadAuthority: 'N'
},
constructor: function(config){
this.initConfig(config);
}
});
I did an Ajax.request to get the settings (after launch) and when I tried to use the following in my view.js for my grid I got an error that the setting was not found.
hidden: (ImageInquiry.config.Settings.getEmailAuthority() ==='N') ? true : false
Comment