【发布时间】:2009-06-10 13:14:48
【问题描述】:
当我从联系人创建订单时,我希望相关字段中的联系人帐户而不是联系人。因此,我在 onload 事件中创建了一个运行良好的代码。
if (
(window.opener != null) &&
(window.opener.parent != null) &&
(window.opener.parent.document != null) &&
(window.opener.parent.document.crmForm != null)) {
var parentForm = window.opener.parent.document.crmForm;
if (parentForm.ObjectTypeName == "contact")
{
if (parentForm.parentcustomerid.DataValue != null)
{
var newIdArray;
newIdArray = parentForm.parentcustomerid.DataValue;
crmForm.all.customerid.DataValue = newIdArray;
//crmForm.all.from.DataValue = newIdArray;
}
}
}
当我创建报价并尝试将其转换为订单时出现问题。出现以下警告错误。 (我已尽力从挪威语翻译过来)
“此字段的自定义事件出现错误。
领域:窗户
事件:加载
错误:服务器(不是服务器程序)不可用并且消失了。这些联系是无罪的。该事件尚未进行。”
点击确定后,一切正常。有谁知道为什么会出现这个警告信息?
谢谢,马丁
【问题讨论】:
标签: dynamics-crm dynamics-crm-4