The one of addition that we saw is Progress Indicator functionality with Dynamics 365 v9 release. With this functionality, users can now develop more responsive forms and display the Progress dialog/Indicator using “showProgressIndicator” function of XRM.Utility namespace.
You can add showProgressIndicator to any of your form events like Ribbon buttons, field events, onSave event, onLoad event etc.
The Syntax of the showProgressIndicator is :
Xrm.Utility.showProgressIndicator(message)
Parameters :
Name | Type | Required | Description |
---|---|---|---|
message | String | Yes | The message to be displayed in the progress dialog. |
Note that, You need to use closeProgressIndicator to close the indicator.
Below is the showProgressIndicator usage on onChange event of the form field.
Example
To show indicator on saving of record add this code to your onSave event.
RelationshipTypeOnChange: function (context) {
Xrm.Utility.showProgressIndicator("Please wait while record updating…");
// Do your logic
Xrm.Utility.closeProgressIndicator();
},
