CRM 2013 JavaScript Form Reload on attribute onChange crashes on IE9/10/11 but works on Firefox & Chrome -


After a field onchange is triggered, I'm having a problem to reload the form. This problem is only for Internet Explorer 8. It works, but 9/10/11 crashes.

Whatever I have tried to do.

  • xrm.utility.openentityform.
  • window.location.reload
  • window.location = document.url

      SaveAndRefresh function (var id = Xrm.Page .data.entity.getId (); Xrm.Page.data.save (); Xrm.Utility.openEntityForm ("Event", ID);  

    }

Any help would be appreciated Thanks

:

  Xrm.Page.data.refresh ();  

You still save, so you will see the code:

  save the function andrfres () {Xrm.Page.data.save (); Xrm.Page.data.refresh (); }  

OK, according to SDK, you can do this:

  Xrm.Page.data.save (). Then (function () {alert ('save, refresh'); Xrm.Page.data.refresh ();}, function () {warning ('save failed!');});  

Comments