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 CRM (Archived)

Disable Close button on CrmDialog

(0) ShareShare
ReportReport
Posted on by

Hi

I have a custom ribbon, that when clicked, takes a long time to be proceed cause it calls an external REST api, but in mean while I wan to show the user a Progress Dialog, So I decided to use CrmDialog.
But it has close button on top-right of it and I want to disable it. Is it possible ?

Is there any other way to show a Progress Dialog to user ?

Also I registered a function setCallbackReference of CrmDialog but it is not beign called when I click on Close button.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi Babak,

    I don't think you can disable that button, but you may want to look at a different implementation altogether because the progress dialog isn't available in 2016 so that'll cause an issue when you upgrade. msdn.microsoft.com/.../microsoft.xrm.client.windows.controls.connectiondialog.progressdialog(v=crm.7).aspx

    I would try putting your own processing gif that pops up just before your external call, and when the call completes it clears the gif.

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at

    Hi Babak,

    +1 for Aiden's suggestion.

    Another option is to use Xrm.Page.ui.setFormNotification() in JavaScript to notify the user of the progress.

    Xrm.Page.ui.setFormNotification("This is going to take a while.  Time for a coffee!.", "INFORMATION")

    www.powerobjects.com/.../dynamics-crm-alert-and-notification-javascript-methods

    Below is a suggestion.

    1. Display notification using Xrm.Page.ui.setFormNotification().

    2. Use SetTimeout() to trigger another function after 1 sec.

    3. Make the REST Call.

    4. Check the Status of the REST Call and if still waiting, clear and update the notification (I used dots)

    5. Once the REST Call is complete, you can clear the notification.

  • Community Member Profile Picture
    on at

    Thanks Aiden.

    But I dont know how to pop the gif on the page so user can only see that gif and not able to select any thing in form or edit a field.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans