快捷搜索:

【Microsoft Dynamics CRM 2011教程】19、用Jscript打开新

在CRM中,我们常常碰到这样的环境,点击一个按钮,必要弹出一个新的窗口。比如在客户中添加新联系人:

在MS CRM2011中,有以下几种措施可以打开一个新的窗口:

(1) Xrm.Utility.openEntityForm

(2) window.open

(3) openObj

前两种是在SDK中支持的,尤其保举应用第一种,但要留意Xrm.Utility这个工具只在Rollup 8今后的版本才支持。这里顺便列出来CRM 2011各个Rollup的版本号:

Build Version

RTM: 5.0.9688.583 (English)

Rollup 1 - 5.0.9688.1045

Rollup 2 - 5.0.9688.1155 -> CRM2011-Server-v2 - 5.0.9688.1157

Rollup 3 - 5.0.9688.1244

Rollup 4 - 5.0.9688.1450

Rollup 5 - 5.0.9688.1533

Rollup 6 - 5.0.9690.1992 -> has been re-released (original release version: 5.0.9689.1985)

Rollup 7 - 5.0.9690.2165

Rollup 8 - 5.0.9690.2243

Rollup 10 - 5.0.9690.2740 -> has been re-released (original release version: 5.0.9690.2730)

Note

Update Rollup 9 was not released because of a delay in the Q2 Service Update.

Update Rollup 10 fixes all the issues that would have been included in Update Rollup 9

下面来分手看一下这几个措施的应用:

(1) Xrm.Utility.openEntityForm

我们使用该措施来自己实现一个在客户中添加联系人的按钮。该措施详细拜见SDK – “Set Field Values Using Parameters Passed to a Form”。

您可能还会对下面的文章感兴趣: