Hi Team,
I would like to write a custom function/operation on click of different section name from the workspace available in the left panel.
I debugged to find out the base module that gets triggered when a Section is clicked in the left panel as depicted in the below image.
Also, if I click on certain section a custom operation has to be implemented (Say., click on Certificate section name).
Substitution Not allowed:
I tried to include the custom logic into the init() function as below,
init: function(callback, scope) {
this.callParent(arguments);
var editPages = this.viewModel.get("EditPages");
editPages.each(function(editPage) {
var pageSchemaName = editPage.get("SchemaName");
if(pageSchemaName === "UsrCertificate1Page"){
this.console.log("Certificate section is clicked");
this.callMyCustomFunction(); // A custom operation call
}
}, this);
},
When i tried to replace the SectionModuleV2 (Title: Section display module), it throws a warning as substitution is not allowed.
Kindly guide me to achieve this.
Regards,
Bhoobalan P.