Hi, I read many posts related to the topic but I don't want to solve the problem, I would like to add a button next to the edit button but I can't do it, I also followed the indications of this post https://forum.espocrm.com/forum/gene...ss-limitations but I can't.
First of all I created the folders src - views - TargetList - Record in the "client/custom" path because they didn't exist. Then I wrote the detail.js file in this path: "client/custom/src/views/TargetList/record"
Code:
Espo.define('custom:views/TargetList/record/detail', 'views/record/detail', function (Dep) { return Dep.extend({ setupActionItems: function () { this.dropdownItemList.push({ label: 'Invia Email CCN', name: 'InviaEmailCCN' }); }, actionInviaEmailCCN: function () { var templateId = this.model.get("templateId"); window.open('?entryPoint=TargetListInviaEmailCCN&e ntityType='+this.model.name+'&entityId='+this.mode l.id+'&templateId=' + templateId, '_blank'); } }); });
Comment