Intellisense for Xrm.Page in CRM 2011

Posted BinBinGo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Intellisense for Xrm.Page in CRM 2011相关的知识,希望对你有一定的参考价值。

Intellisense for Xrm.Page in CRM 2011

In CRM 2011 javascripts for crm forms can be stored externally as web resources and those are no longer embedded in CRM forms. Javascripts in web resources can be edited using an external editor. Visual Studio IDE provides intellisense to the Javascripts in Xrm.Page with the help of XrmPage-vsdoc.js. It works with Visual Studio 2010 and Visual Studio 2012. Thanks to Patrick Verbeeten for bringing this cool feature in.

In order to get the intellisense Visual Studio IDE needs the reference of the XrmPage-vsdoc.js file. Follow the following steps to enable intellisense for Xrm.Page in the Javascript.

[1] Download XrmPage-vsdoc.js from HERE

[2] Add XrmPage-vsdoc.js in to the Visual Studio IDE

技术分享

 

 

技术分享

 

[3] Create a new Javascript file to a CrmForm and add following reference to that.

技术分享

 

Some Images of Intellisense inside the Javascripts

技术分享

 

技术分享

 

技术分享

 

技术分享

 

技术分享

 

以上是关于Intellisense for Xrm.Page in CRM 2011的主要内容,如果未能解决你的问题,请参考以下文章

dynamics crm 一些常用的js

Client API Object Model - Form Context

CRM中复制记录的方法

Dynamics Crm 常用的JS

CRM 2016 自定义lookup过滤

Dynamics CRM 日常使用JS整理