积极答复者
获取批量选取的客户id信息

问题
答案
全部回复
-
试试看这样
if (
(window.opener != null) &&
(window.opener.parent != null) &&
(window.opener.parent.document != null) &&
(window.opener.parent.document.crmForm != null)) {
//This is the parent form
var parentForm = window.opener.parent.document.crmForm;
var oCustomer=parentForm.all.customers;
if (oCustomer!=null)
{
if (oCustomer.DataValue.length>0)
{
var ocustId=oCustomer.DataValue[0].id;
}
}
}