web
You’re offline. This is a read only version of the page.
close
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.

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    you can use showProgressIndicator and closeProgressIndicator

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

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    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();
    }

  • Max77 Profile Picture
    22 on at

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

    Xavier Monin , Guido Preite thank you very mach!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans