Message show dialog with ok button using javascript d365
if (evrVarRec != null && evrVarRec.entities != null && evrVarRec.entities.length > 0) {
var alertStrings = { confirmButtonLabel: "Ok", text: "In system found workorders which system status not unsheduled and completed. Please first update the status completed after try again!", title: "Alert" };
var alertOptions = { height: 120, width: 260 };
Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then(
function (success) {
formContext.getAttribute("ecl_isclientdisease").setValue(false);
},
function (error) {
console.log(error.message);
}
);
}
Comments
Post a Comment