Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

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

(0) ShareShare
ReportReport
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
    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
    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
    54,077 Moderator 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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans