Hi Team,
I'm trying to extend a base function in my custom controller. And the code is loading once I open the page but is not triggering the function. Is this the correct way? What I'm doing wrong in this case?
So I have the custom controller created in this way:
Ext.define("Terrasoft.configuration.controller.SMAgilizExpenseManagementGridPage", {
extend: "Terrasoft.controller.BaseGridPage",
statics: {
Model: AgilizExpenseManagement
},
config: {
refs: {
view: "#AgilizExpenseManagementGridPage"
}
},
/**
* @inheritdoc
* @protected
* @overridden
*/
getChangeModeOperations: function() {
var detailConfig = this.getDetailConfig();
if (detailConfig) {
var parentRecord = detailConfig.parentRecord;
if (parentRecord.get("IsNonActualEmail") === false) {
return {
canCreate: false,
canUpdate: false,
canDelete: false
};
}
}
return this.callParent(arguments);
},
initializeQueryConfig: function() {
this.callParent(arguments);
var gridQueryConfig = this.getQueryConfig();
gridQueryConfig.addColumns(this.startDateColumnName, this.endDateColumnName);
if (Terrasoft.FeatureUtils.isHybridMode()) {
gridQueryConfig.setIsBatch(false);
}
},
});
And is added in the MobileApplicationManifestDefaultWorkplace as well: