Dynamics CRM 自定义实体表单 JavaScript
我有一个实体表单自定义,它向我的“联系人”实体表单添加了一个额外的选项卡。
我有自定义 JavaScript,我想在窗口加载并填充此选项卡(尚未选择)时执行。
是否有地方可以注册此 JavaScript,以便在加载“联系人”窗口时触发它?
谢谢。
I have an entity form customization that adds an extra tab to my Contact entity form.
I have custom JavaScript that I'd like to execute when the window loads and populate this tab (which is not yet selected).
Is there a place I can register this JavaScript so that it fires when the Contact window loads?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,你可以。有关详细说明,请参阅本文:
http://www.sonomapartners.com/ Services/CRM/microsoftcrm4-formonload-example.aspx
基本思想:
导航到“设置”->定制->自定义实体。双击联系人实体。将出现实体编辑器。
单击“表单和视图”。双击表格。将出现联系人实体的表单编辑器。
单击“表单属性”,将出现编辑器窗口。从这里,您看到可以选择将脚本添加到表单中
OnLoad 或 OnSave 事件。
选择 OnLoad 并单击“编辑”。
粘贴您的脚本并确保通过转到“操作”->“发布实体以应用更改”在顶部工具栏中发布。
Yes you can. See this article for detailed instructions:
http://www.sonomapartners.com/Services/CRM/microsoftcrm4-formonload-example.aspx
The basic idea:
Navigate to Settings -> Customization -> Customize Entities. Double click the Contact entity. The entity editor will appear.
Click Forms and Views. Double click Form. The form editor for the contact entity will appear.
Click Form Properties and the editor window will appear. From here, you see that you can choose to add a script to the form
OnLoad or OnSave event.
Select OnLoad and click Edit.
Paste your script in and make sure you publish the entity to apply the change by going to Actions -> Publish in the top tool bar.
要在解决方案中包含 javascript 文件,必须在 WebResources 部分中添加
要处理 JScript 文件或任何其他 Web 资源,请尝试使用 XrmToolBox,与多个CRM版本兼容,并且有很多其他有用的工具。
希望有帮助
To inlcude javascript file in a solution have to added in the WebResources section
To handle JScript files or any other web resource try using XrmToolBox, is compatible with several CRM versions and have a lot of other useful tools in it.
hope it helps