fiogf49gjkf0d Hi,
I've got a big problem with the LookupExclusion Property of SalesLogix 7.5.4 because it is very very slow.
We have round about 11.000 Contacts at all. About 3.000 Contacs belong to a special Account, so theese Contacts should not be shown in the Lookup.
First we tried to do a Lookup that excludes that Contacts but after that we didn't see any Contacts anymore. So I started searching through the internet and find out that I can do some LookupExclusions to my Lookup.
This is my Code:
Sage.Entity.Interfaces.IAccount acc = Sage.Platform.EntityFactory.GetById<Sage.Entity.Interfaces.IAccount>(strAccountId);<br /> lueAddParticipant.LookupExclusions = (ICollection)acc.Contacts; lueAddParticipant.LookupPreFilters.Clear(); lueAddParticipant.InitializeLookup = true;
But this is, as i wrote already, very very ... very slow so I had to remove it.
But where is the problem? Do the LookupExclusions themselfes take so long or is it the Time to convert the generic Collection to the basic ICollection?
What can I do here to get the Contacts belonging to Account "acc" not being shown in the Lookup? |