Our resident visual effects tipster asked me the other day if I had any experience with using vorlon.js in CRM. I didn’t as I never heard of it. But since someone somewhere some time ago pointed out that these days <random noun>.js is probably a valid javascript library, I decided to take a look. As it […]
Tip #550: Subgrids and scripts
One of the Easter Eggs in CRM Online 2015 Update 1/CRM 2016 are the ability to execute scripts when subgrids load. With this enhancement, CRM developers can set event handlers for the OnLoad event of the subgrid. Scripts can be used to: Get the current view selected in the view selector Change the view of the […]
Tip #531: CRM, SPA and CORS walk into a bar
If you wanted to access your CRM from the javascript using web services, the only option until CRM 2016 was to wrap your script as a webresource. That way script is hosted in the same domain as CRM and “rides” authenticated session of your browser. External pages were no go because of the Cross-Origin Resource […]
Tip #402: My form script changes aren’t working
“I made an update to a form script in Dynamics CRM, but I don’t think it worked–it still acts the way it used to before I made the change. What’s happening?” What most likely is happening is that your browser is caching the old form script. When you update CRM customization, if you change a […]
Tip #398: Careful with those .js libraries
After denting his table, Mehmet “Sputnik” Ozdemir finally decided to use his call-a-friend card. The problem? After attaching this trivial piece of script to the birthday field one would reasonably expect to select a date and see that selected value (+local time) popping up in a box. Instead, the returned value was null. Sometimes but […]
Tip #324: Open a record using just ID
Joel recently has explained how to find a record using id. Cute, very cute. Text editors. What’s next, vim? Want to be a real developer? Repeat after me: Open CRM in IE Press F12 Click Console tab Type Xrm.Utility.openEntityForm(“entity name”,”record GUID”) Press <Enter> and behold Is this hands down the best method? Let’s see what […]
Tip #288: Remove event handlers Texas style
Today’s developer productivity tip comes from Mitch “Texas Baby Oil” Milam. The fastest way to remove all of the Event Handlers from a form is to remove the JavaScript Library or Libraries associated with the form. Removing the library will also remove any event handlers (OnLoad, OnSave, OnChange, etc.) that have been associated with that […]
Tip #274: Lookup fields in CRM for tablets
I recently wrote the book The CRM Mobile Survival Guide. In Chapter 5 I discuss how to configure Dynamics CRM to give users a good user experience when using CRM via the CRM for Tablets app. One thing I found while researching the book is that lookup field behavior in the tablet app is not […]
Tip #192: Defensive script writing
(Today’s tip is actually two-in-one but we’ll get to that.) Over the years as a CRM jackofalltrades I learned that to create truly reusable, bug-free and resilient systems is very important to write your scripts as if the next team member, who comes after you, dedicated their entire career to destroying your life’s work. Consider […]