Hi Team,
I am trying make the document title change (the script adaptor) in the attachment tab and trying to refresh the tab with below code but it's not refreshing the tab to show the business users latest document title.
var self = dojo.getObject("_allWidgetsThis");
self.onBroadcastEvent("icm.RefreshTab",{"tabId":"Documents"});
//self._onCalingAuditService(caseObjNew,oldDocClass,selectedDocTypeDesc);
var commentText="User "+ecm.model.desktop.userDisplayName+" has relabeled document from "+oldDocClass+" to "+selectedDocTypeDesc;
caseObjNew.getCase().addCaseComment(Constants.CommentContext.CASE, commentText, null);
var updateCaseInfoAndAuditUtil = new UpdateMHCaseInfoAndAuditUtil();
updateCaseInfoAndAuditUtil.doUpdateCaseInfoAndAudit(caseObjNew,44,1);
Could you please help us why above code is not working, or do you have alternative way to do this task?
------------------------------
Ratnam Sakhamuri
------------------------------