Posts

Showing posts from August, 2024

Update record when checkbox checked using JavaScript and save d365

On checkbox on change following function called -------------------------------------------------------------------- function IsClientDisease(executionContext) {     debugger;     var formContext = executionContext.getFormContext();     var selectedValues = formContext.getAttribute("ecl_isclientdisease").getValue();     var id = formContext.data.entity.getId().replace("{", "").replace("}", "");     if (selectedValues == 1) {         var fetchbooking = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>" +             "  <entity name='contact'>" +             "    <attribute name='fullname' />" +             "    <attribute name='telephone1' />" +             "    <attribute name='contactid' />" +  ...

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 (erro...

FetchXmlFormatter code to c# javascript

  Fetch Xml Formatter Tool Online (ashishvishwakarma.com) https://arunpotti.com/2014/11/15/fetchxml-formatter-tool/