latest Post

Dynamics CRM - Loading Dependent JS File on Ribbon button on Home Page.

 Haven't blogged for an awfully long time. I keep meaning too as we have worked on some really interesting things recently but I guess time is a big factor. 

Anyway, something I was trying today which took me a while to figure out was I wanted to create a custom ribbon button to show on both the account form page and account home (list page). 

Using the excellent ribbon workbench editor makes this a doddle but I came across an issue where my JS Method used for the button click was reliant on another JS web resource. This worked fine on the form page as I was able to load the dependent JS file directly onto the page. 

However,  I couldn't find a way to do this on the home (list page). I spent quite a while playing around with workbecheditor I knew we could create multiple JavaScript actions on the button to call functions from two different web resources but I didn't have a function to call. I first tried to leave this blank but got an error message. I was even thinking maybe I create an additional function which does nothing just to get the web resource to load onto the page. 

In the end, the simple solution was to enter NAN as the function name. This allowed me to load both web resources onto the page and only call the one function. 

Simple when you know-how eh!. 




Recommended Posts × +

4 comments:

  1. my partner and I have been trying for a baby for over two years now, We were going to a fertility clinic for about 5 months before somebody at baby center told us to contact this spell caster who is so powerful, We contacted him at this email; babaka.wolf@gmail.com or Facebook at priest.babaka , for him to help us, then we told him our problem, he told us that we will conceive once we follow his instructions ,but after two years of trying we were at a point where we were willing to try anything. And I'm glad we came to Priest Babaka, Because his pregnancy spell cast and herbal remedy help us, and I honestly believe him, and his gods really helped us as well, I am thankful for all he has done. contact him via email: babaka.wolf@gmail.com or Facebook at priest.babaka if you are trying to have a baby or want your lover back. he has powers to do it, he has done mine

    ReplyDelete
  2. I really want to thank Dr Emu for saving my marriage. My wife really treated me badly and left home for almost 3 month this got me sick and confused. Then I told my friend about how my wife has changed towards me. Then she told me to contact Dr Emu that he will help me bring back my wife and change her back to a good woman. I never believed in all this but I gave it a try. Dr Emu casted a spell of return of love on her, and my wife came back home for forgiveness and today we are happy again. If you are going through any relationship stress or you want back your Ex or Divorce husband you can contact his whatsapp +2347012841542 or email emutemple@gmail.com website: Https://emutemple.wordpress.com/ Https://web.facebook.com/Emu-Temple-104891335203341

    ReplyDelete
  3. powerful herbal healer called Dr. voodoo who use his natural herbs to cure
    my HIV disease I suffered from 5years, but now I am a happy woman and i am
    free from this disease that has been problem to my living, after using Dr.
    voodoo herbal medicine within 1week i was diagnose negative, I will
    recommend Dr. voodoo to everyone reading this article because this herbal
    healer is capable to heal anything below.

    1. Diabetes
    2. HERPES 1/2
    3. CANCER
    4. Lymphoma disease
    5. Conceived a child
    6. Fibroid

    Email Dr voodoo at: voodoospelltemple66@gmail.com add Dr. voodoo on
    whatsApp: +2348140120719

    ReplyDelete
  4. Dynamics CRM is a business management software that helps businesses run their business more effectively and efficiently. The application is an all-in-one application that allows businesses to manage their customers, suppliers and other important business partners, and it’s not too difficult to use and to get started with. Must you can get help with essay writing info their who are like this. Even if you’re not a Dynamics CRM specialist, the application can be used to create and manage pages that display the main objects of the product.

    ReplyDelete