PLEASE REPLY TO THIS POST SO THAT I CAN ATTACH SCREEN CAPTURES
Hi everyone,
We are upgrading CRM 4.0 to 2011.
Scenario -
In CRM 4.0 , we have a common JS file located in the project "abc.def.crm.web" and it is referred by every custom entity on the "onLoad" event.
- "MyJavascript.JS " has around 35 functions.
- Each entity uses at max two or three functions from this "myJavascript.JS" file.
- According to the info in "onLoad"event , this JS file is placed at - "/../ISV/MyProject/MyJavascript.JS" (see Screen capture ), each Onload event uses this file as source file.
Screen Capture -1
Above is CRM 4.0 Custom entity's OnLoad event -- JS file is in ISV folder
Screen Capture - 2
Above is the Screen Capture of Visual Studio, just to show the location of the JS file.
Problem/Issue-
We have now upgraded to CRM 2011.
A default Web Resource/Library has been AUTOMATICALLY added to the OnLoad event of every custom entity (because of the Upgrade) See Screen Capture below-
Screen Capture - 3
When I open "_application_main_library.js", I see the old code that we used for CRM 4.0 -
Screen Capture - 4
Brief -
Crm 4.0 used to support a JS file from a common location i.e - ISV folder.
CRM 2011 doesn't support ISV folder/ A common location.
I have common JS file, all entities HAVE TO refer it, and use two or three functions from it. (eg - "HideTab()", definition for this function is in the Common JS file -- MyJavascript.JS)
- How can I make every entity to refer to that common file on OnLoad Event?
- Can I convert this file to a Web Resource and make each entity use it? But the problem here is that I want each entity to use only two, three functions from a list of 35 functions .
Pleas help.
POSTING SCREEN CAPTURES IN REPLY TO THIS BECAUSE OF SIZE CONSTRAINTS
Please contact me for any clarifications
Thanks in Advance
Sagar