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.
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() }
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?
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.
Hi,
Can you try to clear the cache ? Do you have the same behavior in an incognito browser window?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156