Home » Dynamics » Open Progress Indicator using Xrm.Utility in Dynamics 365 v9.0

Open Progress Indicator using Xrm.Utility in Dynamics 365 v9.0

Text Widget

This is a text widget. The Text Widget allows you to add text or HTML to your sidebar. You can use a text widget to display text, links, images, HTML, or a combination of these. Edit them in the Widget section of the Customizer.

Introduction:

A few months back Microsoft has announced the release of Dynamics 365 v9.0 and has come up with many cool features.

Where some of them are related to functionality while others are related to UI.

Well! The list of newly added features is quite long though not exhaustive.

Open Progress indicator using Xrm.Utility in Dynamics 365 v9.0

The one of interesting addition that we saw and which could be a boon for developers is Progress Indicator functionality. With this functionality, user can display the Progress dialog/Indicator using “showProgressIndicator” function of XRM.Utility namespace.

To achieve this previously, we need to create a web resource which contains the custom logic to display the Progress Indicator/dialog in the CRM, and then use this web resource in order to show the Progress Indicator.

Now with the release of Dynamics 365 v9.0, we can display the Progress Indicator/dialog by using out of the box “showProgressIndicator” function of XRM.Utility namespace, the syntax of the function is as given below.

Xrm.Utility.showProgressIndicator(message);

Where,

message: Is a required argument of type string, message contains the string value which is displayed while showing the Progress Indicator.

Example: Xrm.Utility.showProgressIndicator(“Processing Record”);

We used this function in our JavaScript and the working of this function is cool as seen in the below screenshot.

Open Progress Indicator using Xrm.Utility in Dynamics 365 v9.0

Note: In order to closed the above Progress Indicator we would need to call Xrm.Utility.closeProgressIndicator() of Xrm.Utility namespace.

closeProgressIndicator() function don’t have any input argument, and if there is any Progress Indicator is displayed using showProgressIndicator(arg) function, then closeProgressIndicator() closes the progress indicator otherwise closeProgressIndicator() do nothing.

So whenever a user needs to close the Progress Indicator user can use closeProgressIndicator() function.

Conclusion:

Now user can display the Progress Indicator by using out of the box function “showProgressIndicator(arg)” in Dynamics 365 v9.0.

Export Dynamics CRM Reports

from Microsoft Dynamics 365(CRM) Tips and Tricks http://bit.ly/2Di8MSA
via IFTTT


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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: