Archive for the Conversion Strategies Category

JavaScript Upgrade Gotcha #4: The .title property

The .title property in JavaScript is used by Dynamics CRM 4.0 to display a tool tip when you hover a mouse over the field. Here is an example:   crmForm.all.new_name_c.title = "Please validate their legal name.";   Unfortunately, there is no equivalent within Dynamics CRM 2011 so […]

Read more

JavaScript Upgrade Gotcha #3: The .style property

There are certain cases where it is necessary to customize the CRM user interface to perform a specific action or to inform the user of a specific condition or alert, or whatever. This was mainly accomplished by changing the .style property of a field. Such actions were […]

Read more

JavaScript Upgrade Gotcha #2: Using the JavaScript eval method

The use of the JavaScript method eval is considered to be bad coding practice by most of the JavaScript Technorati. That doesn’t stop people from using it, and it makes automatic conversion verify difficult. Consider this code:   this.FieldName1 = "name"; eval(‘this.Field1 = crmForm.all.’ + this.FieldName1);   […]

Read more

JavaScript Upgrade Gotcha #1: The .id property

Consider this code segment: var oField = executionObj.getEventSource(); if (oField.id == “new_field1” || oField.id == “new_field2”) { // do something } This uses the JavaScript .id property to retrieve the field name. Since this type of code can represent both form controls as well as data items […]

Read more

JavaScript Upgrade Strategies webinar follow-up

The recording today’s webinar is now up: http://www.xrmvirtual.com/events/javascript_upgrade_crm2011_Mitch_Milam Here are the main talking points from today’s meeting: Strategies: Here are the strategies I follow when performing an upgrade from CRM 4.0 to CRM 2011: #1: Create a test environment #2: Upgrade your object model #3: Use Visual […]

Read more

JavaScript Conversion: Creating a supported LookupControlItem method

In Dynamics CRM 4.0, you could use an unsupported internal function to create the value to be inserted into a Lookup control.  The code would look something like this: var lookupItem = new Array(); lookupItem[0] = new LookupControlItem(“{3A6C1B06-C62F-DC11-AFC2-0019B9B20373}”, 1, “A Sales Store 3”); crmForm.all.pricelevelid.DataValue = lookupItem;   […]

Read more

JavaScript Conversion: Removing unnecessary code #1. Adding mailto to an email-enable text field

Occasionally I will run into JavaScript that was added to a form to provide functionality desirable by the business. I have seen several instances where code such as this:   if (crmForm.all.emailaddress1 != null) { crmForm.all.emailaddress1.ondblclick = function () { var email = crmForm.all.emailaddress1.DataValue; if ((email != […]

Read more

JavaScript Conversion: Handling Automatic Semicolon Insertion

One of the most difficult parts of converting JavaScript from CRM 4.0 to 2011 is handling situations where the developer did not use a terminating semicolon.  Actually, this is a problem with JavaScript in general, as I was reminded this week when I listened to the Drama […]

Read more

JavaScript Conversion Keywords

During my recent JavaScript Conversion discussions webinar I showed a list of Supported and Unsupported keywords. I’ve created a page so that you can view them without having to download the webinar support materials. If you run into something that is not on either of these lists, […]

Read more

JavaScript Conversion Discussions Webinar Recording and Materials

JavaScript Conversion Discussions Webinar (September, 2012) We’ll discussed the technical aspects of converting your JavaScript from CRM 4.0 to CRM 2011, as well as the processes that will aid in the overall upgrade process.   Tools to Help Your Conversion: JavaScript Converter http://dynamicsxrmtools.codeplex.com   CRM JavaScript Conversion Assistant […]

Read more
Page 3 of 41234