Without this restriction we could use the following very simple addition in
an onLoad event of a CRM form:
var oLookup = crmForm.all.primarycontactid;
oLookup.lookupclass="stunnware_MyAccountView";
oLookup.AddParam("stunnware_accountid", crmForm.ObjectId);
This overwrites the standard lookup class and adds an additional parameter
to only display the contacts associated with the current account. The only
thing needed to make this working is to remove the hard-coded behaviour
comparing against a list of 69 predefined lookup classes. It won't break any
functionality but would allow us to easily modify the displayed items in the
lookup dialog.
Ideally, we will find the lookupclass and maybe the parameters in the form
designer and/or the attribute defintiion, whatever makes more sense.
Thanks
Michael
--
http://www.stunnware.com/crm
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.