fiogf49gjkf0d On the UI side, Nic Galler has this kind of construct:
<pre> <LookupPreFilters> <SalesLogix:LookupPreFilter PropertyName=”Id” CondOperator=”Not Equal to” FilterValue=”‘xxx’ and Id in (select sr.User.Id from OwnerRights sr where sr.Owner.OwnerDescription=’Lit Fulfillment&rsquo and Id not in (select u.Id from User u where u.Type=’R')” /> </LookupPreFilters> </pre>
This is the same kind of trick we used in the LAN side to use an IN clause to allow the ORing of conditions to a Lookup Control.
So on the code behind ascx.cs this would be something like (per Mark Dykun):
dplArea.LookupPreFilters.Clear(); if (!IsInTeam(CurrentUser, "SIG Private")) { LookupPreFilter filter = new LookupPreFilter("Area", "E-Adjustment" , CondOperator = "!=" ); dplArea.LookupPreFilters.Add(filter); dplArea.InvalidateControlCache(); } And you would have the IN clause buried in your condition operator.....same as in the LAN client. Am still (as of this) trying to figure out the LookupPreFilter(s) object. |