Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Processing loading Icon not showing when clicking on a ribbon button

Posted on by 30

Hi There.

I have a current issue where if i a user clicks on a ribbon button it will  not show a processing loading icon to indicate to the users that the process is working in the backend . The functionality  itself is working in the backend when the ribbon button is clicked , however there is no indication for the users as no processing icon shows.

Is there a way I can add a processing icon to pop up indicate users that the process is working in the backend?

 

I have added a screenshot to show you what i am referring to.

 

 

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: Processing loading Icon not showing when clicking on a ribbon button

    What is the button on which you want to display the progress indicator? Is it a native button or a custom button?

    For a custom button, you can encapsulate the code with the following code:

    try {
        Xrm.Utility.showProgressIndicator("Waiting...");
        
        // Your custom code here
    }
    finaly {
        Xrm.Utility.closeProgressIndicator()
    }

  • CrashQ Profile Picture
    CrashQ 30 on at
    RE: Processing loading Icon not showing when clicking on a ribbon button

    Thanks for the reply Shawn, when you mention the part about adding a custom function in the "command" section, can this be done in the ribbon workbench via xrm toolbox? This is where my ribbon commands are in the ribbon workbench for the actions. Would i create a new java script for the processing icon and add it in the "add action" section?

    pastedimage1682695813234v1.png

  • Suggested answer
    Shawnsauve Profile Picture
    Shawnsauve 1,089 on at
    RE: Processing loading Icon not showing when clicking on a ribbon button

    Yes, you can add a processing loading icon to indicate to users that the process is working in the backend when the ribbon button is clicked. Here are the steps to do this:

    1. First, you need to create a custom web resource that contains the loading icon. You can use any icon that you like, but it's recommended to use a standard loading icon to make it more familiar to users.

    2. Upload the custom web resource to Dynamics 365 by going to Settings > Customizations > Web Resources, and then click the "New" button to create a new web resource.

    3. In the "Web Resource" form, give the web resource a name, such as "LoadingIcon" and set the type to "Webpage".

    4. In the "Content" section, paste the HTML code for the loading icon. You can find many examples of loading icon HTML code online.

    5. Save and publish the web resource.

    6. Next, you need to modify the ribbon button to display the loading icon when it's clicked. To do this, go to the ribbon editor for the entity where the button is located.

    7. Find the ribbon button that you want to modify, and then add a custom function to the "Command" section.

    8. In the custom function, use the Xrm.Utility.showProgressIndicator() method to display the loading icon, and then call the backend process that you want to run.

    9. Once the backend process has completed, use the Xrm.Utility.closeProgressIndicator() method to hide the loading icon.

    By following these steps, you should be able to add a processing loading icon to indicate to users that the process is working in the backend when the ribbon button is clicked.

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: Processing loading Icon not showing when clicking on a ribbon button

    Hi,

    Can you try to clear the cache ? Do you have the same behavior in an incognito browser window?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans