开发者

restrict customer lookup to contacts bug

开发者 https://www.devze.com 2023-01-20 00:32 出处:网络
I\'m using microsoft dynamics crm 4 I inserted the following line to restrict a customer lookup to contacts only (no accounts):

I'm using microsoft dynamics crm 4

I inserted the following line to restrict a customer lookup to contacts only (no accounts):

crmForm.all.customerid.setAttribute("lookuptypes", "2");

It does restrict the lookup to contacts only, but there is a strange bug:

When i select any customer, the icon next to him becomes the account icon, not the contact icon (folder inste开发者_如何学运维ad of card)

Any solutions to this ?


Here is the answer:

var customer = crmForm.all.customerid;
customer.lookuptypes = "2";
customer.lookuptypenames = "contact:2";
customer.lookuptypeIcons = "/_imgs/ico_16_2.gif";
customer.defaulttype = "2";

Posted by Andriy a33ik Butenko, in reply to my question on the msdn dynamics forum.

0

精彩评论

暂无评论...
验证码 换一张
取 消