Introduction
If you've ever worked on a large CRM project or had to deal with a CRM 4 upgrade of any size you may quickly find yourself in a sea of JavaScript that can begin to look a little overwhelming. Personally I loathe most JavaScript that comes my way because you tend to get these 5 page long methods that do everything, all the field names are hard coded strings and option sets/form event mode constants are all numeric values so you can't just read the code and quickly understand what it is doing. To make matters worse JavaScript is not like coding in C# so there are so many more opportunities for things to go wrong. Since JavaScript is very loose and the tools available at the moment aren't very strong in design time error and dependency checking are not up to par with managed code it will pay big dividends to try and be a little stricter up front when it comes to writing your client side code and keeping those libraries organized.
The following is my conceptual working model that I'm working on as I've had to deal with development issues during my travels. Mind you I have not yet had an opportunity to implement this in an actual project yet so let's just call this an philosophical discussion for now.
JavaScript Web Resource Functional Breakdown Structure
It is helpful to look at your JavaScript library from a top down hierarchical perspective. There is more investment up front in taking the time to organize this way because it requires more strategic thinking about the actual implementation but it pays dividend when the time comes to upgrade or maintain the solution code.
1 ->Organization -> 2) Entity -> 3) Form -> 4) Function Area
This tutorial is targeted for Microsoft Dynamics CRM developers beginning to learn Dynamics CRM.
Thursday, March 21, 2013
CRM 2011 JavaScript Library Methodology
Subscribe to:
Post Comments (Atom)
How to Deploy your API as a web app or API app
Before you can call your custom API from a logic app workflow, deploy your API as a web app or API app to Azure App Service. To make your ...
-
I was looking at developer’s toolkit shipped with CRM2011 SDK. There are few blogs out there on how to create plugins using developer's...
-
he usual way of generating quotation document in Microsoft Dynamics CRM is either using a lengthy word mail merge process or by creating...
-
Follow the below steps to download the Tools, Step 1: Create a folder in D Drive and name it as “ Dynamics_365_Development_Tools “ Step 2...
No comments:
Post a Comment