Hi community,
As an OOTB feature in Creatio Service, every case title is created following this logic :
Case #SR0000XXX: subject
Where SR00000XXX is given by the CaseCodeMask and the CaseLastNumber system setting. However, if I do not want the "subject" field to be in the title but, for example, I would have the customer name or another field, where can I change this logic ?
Many thanks for this clarification.
Best regards,
Jonathan
Like
You can change that by overriding the getPageHeaderCaption function on CasePage.
For example, to display the case number and account name, add this function to the CasePage:
getPageHeaderCaption: function() { var number = this.get("Number"), account = this.get("Account"); var title = "#" + number; if (account) { title += " " + account.displayName; } return title; }
Ryan
Hello,
The logic of forming the page header caption is located in the CasePage schema (from the Case package) in the getPageHeaderCaption method. Here is the line of code that returns the end result:
return this.Ext.String.format(template, number, subject);
So you need to override the logic of this particular method in your custom package.
You can change that by overriding the getPageHeaderCaption function on CasePage.
For example, to display the case number and account name, add this function to the CasePage:
getPageHeaderCaption: function() { var number = this.get("Number"), account = this.get("Account"); var title = "#" + number; if (account) { title += " " + account.displayName; } return title; }
Ryan
Many thanks for your perfect answers ! Could not be better :)