Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to block a window/interface for a few seconds?

Posted on by 22

Hello, guys!

I'd like a user not to do anything after he pressed a button in model driven main form. My MD app has to check smth for a few seconds. Is there a standard way to lock window/form/interfase?

Maybe it is possible to use jquery+blockUI, is there the example? I haven't found any example how to use jquery in model driven main form.

  • Max77 Profile Picture
    Max77 22 on at
    RE: How to block a window/interface for a few seconds?

    At last... I spent a lot of time and tried many ways.

    Xavier Monin , Guido Preite thank you very mach!

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: How to block a window/interface for a few seconds?

    You can use Xrm.Utility.showProgressIndicator to block the user interface with a message.

    Use Xrm.Utility.closeProgressIndicator when the job is finished.

    Use it with a try { } finaly {} to ensure that the closeProcessIndicator is called in all situations (including errors).

    Example:

    try {
        Xrm.Utility.showProgressIndicator("Working in progresss...");
        // Do your stuff here
    }
    finaly {
        Xrm.Utility.closeProgressIndicator();
    }

  • Verified answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: How to block a window/interface for a few seconds?

    you can use showProgressIndicator and closeProgressIndicator

    https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-utility/showprogressindicator

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans