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 × +

5 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. 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
  4. Your site is good and has the helpful material about site best online paper writing services to the history of the legend people. Here, you display some of the pictures which show the type of the people on those time. People live the normal life and wearied the simple clothes.

    ReplyDelete
  5. Everyone wants to look beautiful the day of site for https://www.copy-print.es/27754-2/ prom and they are looking so nice in their costume. I did not go this type of party because I did not like this type of party. But everyone wants to look happy and want to wear a nice suit.

    ReplyDelete