Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Lookup and LookupPreFilters
Valter
Posts: 11
 
Lookup and LookupPreFiltersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Feb 09 12:32 PM
Hi,
I need to prefilter a lookup with some values of ID, the entity is Address and I need to filter some address ids.
How can I do this??
I got success adding one LookupPreFilter, I do in Page_Prerender something like this:

lkpAddress.LookupPreFilters.Clear();
lkpAddress.LookupPreFilters.Add("Id", "ac0000000017");

If I do more "add" on the same PropertyName I get no data in lookup. I could I do the "in" operator to filter in a group of IDs?
Thank you in advance,
Bye!

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Lookup and LookupPreFiltersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jun 11 9:11 AM
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.

[Reply][Quote]
Joern Engmann
Posts: 27
 
Re: Lookup and LookupPreFiltersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Aug 11 7:27 AM
fiogf49gjkf0d

ok


I've tried


 


<SalesLogix:LookupPreFilter PropertyName="Type" PropertyType="System.String" OperatorCode="="
FilterValue="'Partner' and Subtype in ('Reseller', 'OEM Headquarter', 'OEM Subsidery')">
</SalesLogix:LookupPreFilter>


 


and it dosen't work. Any hints?


 


kind regards

[Reply][Quote]
Joern Engmann
Posts: 27
 
Re: Lookup and LookupPreFiltersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Aug 11 7:30 AM
fiogf49gjkf0d

Do you have a link to Nic Gallers post? I can't find it.

[Reply][Quote]
Remy
Posts: 42
 
Re: Lookup and LookupPreFiltersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Aug 11 8:32 AM
fiogf49gjkf0d

I think the original post was from 2009, long before InvalidateControlCache(); existed.

[Reply][Quote]
Joern Engmann
Posts: 27
 
Re: Lookup and LookupPreFiltersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Aug 11 12:58 AM
fiogf49gjkf0d

Hi,


I understand  the possibility on the code side. It's interesting for me how to set up these filters on the UI side because it's better for maintenance.


Any ideas?


 


Jörn

[Reply][Quote]
Joern Engmann
Posts: 27
 
Re: Lookup and LookupPreFiltersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Aug 11 2:35 AM
fiogf49gjkf0d

ok here is the link to the blog


http://blog.nicocrm.com/2009/05/15/tips-tricks-of-the-web-client/


 

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 5:29:42 PM