Hi all,
Not sure if this is possible but I've added a few command bar buttons along with custom javascript web resources that trigger on field change. The problem is that a few of them uses the web API to run custom async functions but users can't see the async function running.
For example I've added a custom command button that resolves cases without the pop out dialogue box. The problem is that even with a refresh and save function that runs after the function is completed, a user can still accidently click the resolve button twice and get a error. Is there a method to lock then from interacting with anything on the screen kind of like the processing svg that shows when I for example delete a record?
Can I use that same svg spinning icon? How would I lock the form temporarily until a function has finished processing?
That's bloody brilliant. Can't believe I didn't notice this!
Hi,
You can use following code when execution of your javascript started
Xrm.Utility.showProgressIndicator("Processing....");
On the success call you can use it like below
function success(result) {
///your code
Xrm.Utility.closeProgressIndicator();
}
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,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156