force-app/main/default/lwc/lexOPDReport/lexOPDReport.js
@@ -37,8 +37,15 @@ } } showToast(msg,type) { if(type == 'success'){ const event = new ShowToastEvent({ title: ' ', message: msg, variant: type, }); this.dispatchEvent(event); this.dispatchEvent(new CloseActionScreenEvent()); }else{ const event = new ShowToastEvent({ message: msg, variant: type, mode: 'sticky' @@ -46,6 +53,8 @@ this.dispatchEvent(event); this.dispatchEvent(new CloseActionScreenEvent()); } } updateRecordView(recordId) { updateRecord({fields: { Id: recordId }}); }