Yesterday used a nice feature progress indicator, before we use to write custom JS to show loading progress image but now we can use new JavaScript function of the Xrm.Utility namespace : showProgressIndicator.


  • showProgressIndicator
  • closeProgressIndicator

show progress indicator (loading image)

------------------------------------------------------------------------------------------------------

function setFaxNumber() {
    Xrm.Utility.showProgressIndicator("Loading contact Info..");
    setTimeout(setFaxNumberafterdelay, 3000);
}
function setFaxNumberAfterDelay() {
    var phoneNumber = Xrm.Page.getAttribute("telephone1").getValue();
    if (phoneNumber != null) {
        Xrm.Page.getAttribute("description").setValue(phoneNumber);
    }
    Xrm.Utility.closeProgressIndicator();

}

---------------------------------------------------------------------------------