19626
2023-10-11 7c7cb195462c2ded7bfe4105959ea36d1dd68ded
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 }});
    }