How to perform click opertion for the sections loaded in the left panel?
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.
Like
Hi Bhoobalan,
As for modules substitution - Ryan Farley created an article regarding extending and overriding modules in Creatio and you can find it here https://customerfx.com/article/overriding-modules-in-creatio-formerly-b….
As for the functionality required - it's better and easier to call this custom action in the init method of the section page itself. Please use it instead of the init method of the SectionModuleV2.
Best regards,
Oscar
Oscar Dylan,
Great, thanks!
Yes, it is reliable to use in the section page itself.
Thanks again!