The Xrm.Page Script Library Template is a Microsoft Visual Studio 2010 project that provides JScript IntelliSense and JScript libraries which uses Xrm.Page objects and methods.This template provides JScript IntelliSense completion and method documentation. The latest release of the Microsoft Dynamics SDK (Version 5.0.3) contains Microsoft Dynamics CRM Solution and Visual Studio extension that together will provide IntelliSense support for the Xrm.Page object in form scripts.
To install the Xrm.Page JScript Library Project, Microsoft Dynamics SDK (Version 5.0.3) needs to be downloaded. The installation files are available in the files downloaded for the Microsoft Dynamics CRM 2011 SDK at SDK\Templates\Xrm.PageScriptProjectTemplate.
1. For Visual C# use XrmPageScriptDevelopmentProjectCS.vsix
2. For Visual Basic .Net use XrmPageScriptDevelopmentProjectVB.vsix
3. Double-click the .vsix file to install it.
4. The Visual Studio Extension Installer dialog box prompts you to install the extension.
5. Close all open instances of Visual Studio for the project to be available to use.
In Visual Studio, select File > New > Project. Now Xrm.Page JScript Library Project template will visible on .NET language option.
To create new JScript library files, must drag the XrmPageTemplate.js file to the top of new JScript library to create the reference that enables Visual Studio IntelliSense. The following reference must appear at the top of the file:
// <reference path=”XrmPageTemplate.js” />
Now with this reference anyone can simply start typing “Xrm” which will follow the completion and method documentation which will be provided by JScript IntelliSense.If anyone use the incorrect name, or the incorrect casing, will only see the standard JScript object properties with no IntelliSense method documentation.