简体   繁体   English

Dynamics CRM:在Eclipse中使用Xrm.Page库

[英]Dynamics CRM: using Xrm.Page library in Eclipse

I'm using Eclipse as JavaScript IDE. 我正在使用Eclipse作为JavaScript IDE。

I would like to setup Xrm.Page library in this environment (for code completion and assistance). 我想在此环境中设置Xrm.Page库(用于代码完成和帮助)。

I couldn't find any separate library files and any tools for that, just for Visual Studio. 我找不到用于Visual Studio的任何单独的库文件和任何工具。 Is there a solution for using it in Eclipse? 有在Eclipse中使用它的解决方案吗?

  1. Install a free copy of Visual Studio Express. 安装Visual Studio Express的免费副本。
  2. Install the VS extension from \\sdk\\templates\\xrm.pagescriptprojecttemplate \\sdk\\templates\\xrm.pagescriptprojecttemplate安装VS扩展
  3. Create a VS solution from the XrmPageScript template. 从XrmPageScript模板创建VS解决方案。
  4. From the new solution copy of the file \\Scripts\\XrmPageTemplate.js 来自文件\\Scripts\\XrmPageTemplate.js的新解决方案副本

Now you can bring the XrmPageTemplate.js file into Eclipse and develop with code-completion, etc. 现在,您可以将XrmPageTemplate.js文件引入Eclipse并使用代码完成等进行开发。

UPDATED DEC 02 2013 2013年12月2日更新

After looking at your comments I did some further investigation. 看完您的评论后,我做了进一步的调查。 Eclipse, unlike Visual Studio, does not support code completion from JavaScript source in a reliable manner. Eclipse与Visual Studio不同,它不以可靠的方式支持来自JavaScript源的代码完成。 In most cases it requires a custom plugin be created to support auto completion. 在大多数情况下,需要创建自定义插件以支持自动完成。

Quoting from Add External JS Libraries to Eclipse JSDT-driven Projects : 引用从将外部JS库添加到Eclipse JSDT驱动的项目中

Resources which are added to the Build Path can theoretically be made available for Content Assist. 理论上,可以将添加到构建路径的资源用于Content Assist。 That's an important distinction because ensuring that the file is scanned does not guarantee that it will be correctly converted into a usable object model. 这是一个重要的区别,因为确保扫描文件并不能保证将文件正确转换为可用的对象模型。 That's because, in order for some JDT-based functionality to work correctly, class type information must be inferred in many cases. 这是因为,为了使某些基于JDT的功能正常工作,必须在许多情况下推断类类型信息。 Eclipse examines the JavaScript Abstract Syntax Tree (AST) in order to generate "virtual" class information. Eclipse检查JavaScript抽象语法树(AST),以生成“虚拟”类信息。 And while the unique conventions of the various JavaScript Toolkits such as Dodo, jQuery, and Prototype can be handled to some extent, at this point it's still provisional. 尽管可以在某种程度上处理各种JavaScript工具包(如Dodo,jQuery和Prototype)的独特约定,但目前仍是临时的。

Some of the makers of popular JS libraries have taken a proactive role in exposing their object model to Eclipse via a plugin. 流行的JS库的一些制造商在通过插件将其对象模型暴露给Eclipse方面发挥了积极作用。

Since the only supported development environment for Dynamics CRM is Visual Studio is not likely to see a custom plugin be released to support Xrm.Page . 由于Dynamics CRM唯一受支持的开发环境是Visual Studio,因此不太可能看到发布自定义插件来支持Xrm.Page

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xrm.Page对象层次结构 - Xrm.Page object hierarchy 尝试将crmForm转换为Xrm.Page - Trying to convert crmForm to Xrm.Page 在Dynamics 365 CRM上使用Xrm Object将表单设置为只读 - Set form read only using Xrm Object on Dynamics 365 CRM 保存隐藏字段时XRM.Page API调用的差异 - Difference in XRM.Page API calls when saving hidden field Dynamics CRM 2011:禁用Xrm.Page.ui.close()之后的弹出窗口; - Dynamics CRM 2011: Disable pop-up that comes after Xrm.Page.ui.close(); Dynamics CRM 365 - 无法访问HTML Web资源中的Xrm.Page.entity - Dynamics CRM 365 - Cannot access Xrm.Page.entity in HTML web ressource 从 Xrm.Page 删除后表单中托管的 WebResource 从上下文访问 - Accessing From Context From WebResource Hosted In Form Post Xrm.Page Removal 无法通过Chrome从aspx页面使用“ parent.window.xrm.page”访问ms crm页面 - Not able to access ms crm page using “parent.window.xrm.page” from aspx page through chrome CRM Dynamics,如何使用一种形式传递值,并使用Xrm.Utility.openEntityForm()在新的Entity(form)中设置值; - CRM Dynamics , How to pass values from one form and set the values in a new Entity(form) using Xrm.Utility.openEntityForm(); 使用CRM 2011的Javascript中的SAVE的window.parent.Xrm.Page.data.entity.getId()为null - window.parent.Xrm.Page.data.entity.getId() is null on SAVE in Javascript using CRM 2011
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM