apollo7
asked on
Need Filtered Lookup
I need to lock down the pop up box that appears when I click Customers on the Order form. A pop up box appears with a drop down box for Accounts or Contacts. The default is Accounts (which is what I want). I want to lock down the drop down list on the popup box so that only Accounts appear (no option for Contacts)
The url that appears is for the pop up box is:
https://apollo7.space.net//_controls/lookup/lookupsingle.aspx?class=BasicCustomer&objecttypes=1,2&browse=0&ShowNewButton=1&ShowPropButton=1&DefaultType=0
I copied this url into a new browser window and discovered that if I change 'BasicCustomer&objecttypes =1,2' to BasicCustomer&objecttypes= 1, then I only show Accounts.
(Note: If I change it to BasicCustomer&objecttypes= 2, then I only see Contacts)
Is there a way to modify/filter lookupsingle.aspx (just for Orders) so that it will only show Accounts in the drop down list?
Thanks
The url that appears is for the pop up box is:
https://apollo7.space.net//_controls/lookup/lookupsingle.aspx?class=BasicCustomer&objecttypes=1,2&browse=0&ShowNewButton=1&ShowPropButton=1&DefaultType=0
I copied this url into a new browser window and discovered that if I change 'BasicCustomer&objecttypes
(Note: If I change it to BasicCustomer&objecttypes=
Is there a way to modify/filter lookupsingle.aspx (just for Orders) so that it will only show Accounts in the drop down list?
Thanks
ASKER
Chinmay - I think I have some examples of this / I will try one and post any questions and errors.
ASKER
Chinmay - thought I had some examples of this but cannot find them. Can you provide a link or example of how to restrict the Customers lookup on the Order form. The lookup shows both Accounts and Contacts..I want to show only Accounts as a lookup option.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Chinmay, works great and I can see other places I can use this method
You are welcome. :)
I would not suggest to modify the .aspx file. Rather than that onLoad event of case you can change the filtered lookup.
What I suggest is to write a JavaScript that will change the URL as per your requirements i.e. a script that can set objecttypes=1
Regards,
Chinmay