【发布时间】:2019-06-15 13:50:10
【问题描述】:
我在下面有一些代码,如果启用,我将打开实体的快速创建表单,但如果未启用,我想在新窗口中打开。我需要确定实体是否在定义上启用了快速创建表单,以及如何通过 Javascript 来完成?
var entityFormOptions = {};
entityFormOptions["entityName"] = "contact";
entityFormOptions["useQuickCreateForm"] = true;
// will make it true if quick create form not enabled
entityFormOptions["openInNewWindow"] = false;
// Set default values for the Contact form
var formParameters = {};
// Open the form.
Xrm.Navigation.openForm(entityFormOptions, formParameters).then( function (success) { console.log(success); }, function (error) { console.log(error); });
【问题讨论】:
-
那么从上面的代码中如果没有QC表单或者没有启用QC是什么体验?
标签: dynamics-crm dynamics-crm-2013 dynamics-crm-2016