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)

using web resource (HTML Loader) in CRM managed form

(0) ShareShare
ReportReport
Posted on by

Hi ,

I need to create a Web resource (Html Loader) and need to show or hide this resource using  another Javascript web resource because i have created a custom work flow and it need time to show changes on the form, so that period of time i want to show the html loader on the form.

Thanks,

Mayank

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     if it's a real-time workflow, you don't need any time - the changes are applied right away

     if it's an asynchronous workflow, then it can take anywhere from 30 seconds to up to a few minutes, though it's, usually, on the lower end

  • Community Member Profile Picture
    on at

    Hi Alex,

    it is a async workflow, so its taking approx. 30 sec that's why i want to show the loader.. can you suggest me any solution.

  • Suggested answer
    ashlega Profile Picture
    34,477 on at

    Well, you might create a javascript function, set up a timer, and pull some field from CRM to see if the workflow has finished (might be a datetime field that would be set as the last step in your workflow.. and you would compare it with the value which you had when you started the timer. Or just a two option field whihc you would siwtch back and forth.. point is, you just need to be able to detect the change). Once there are changes, you can reload the form

    It's probably easier to just make that a real-time workflow if that's possible of course

  • Community Member Profile Picture
    on at

    Hi Alex,

    I have already refresh the page after some time and code work fine for me but i need to show the loader show the user can find that there is some background task happening in form. Could you please suggest any other solutions.

    Thanks

  • ashlega Profile Picture
    34,477 on at

    Not sure why it would not work with what I suggested - once you have started the timer, you can show the loader.. once you have detected the changes, you can hide the loader..

    To should the loader, you can put a section on your form which you would hide or show as you need. Or you can probably try jquery dialog..

    https://jqueryui.com/dialog/

    Or you can simply show / hide a form notification notifying the user of what's happening:

    msdn.microsoft.com/.../gg327828.aspx

  • Community Member Profile Picture
    on at

    Code you just provide a sample code

  • ashlega Profile Picture
    34,477 on at

    I don't have the code that would be doing just that, but you can check these links for some examples/guidelines (I'm sure there are other ways to do the same):

    www.c-sharpcorner.com/.../how-to-open-popup-using-client-side-javascript-in-crm

    alertjs.codeplex.com/documentation

    msdn.microsoft.com/.../gg334767.aspx

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