Dynamics 365 – Using Progress Indicator

The one of addition that we saw is Progress Indicator functionality with Dynamics 365 v9 releaseWith 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 :

NameTypeRequiredDescription
messageStringYesThe 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();
    },

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s