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: Dependant lookup pre filters
Tony Joanes
Posts: 71
 
Dependant lookup pre filtersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 10 10:34 AM
Hi have a dependancy lookp control on a form that has some prelookupfilters added to it. This works fine, my issue is that whenever I change the pre filters I have to clear our cookies, rebuild website to have the new filters applied.

I would like to apply filters at run time to this control but it doesn't seem to let me.

I am using the following code to apply a simple filter.

dlMyLookUpControl.LookupPreFilters.Add("Team", "MyTeam")

Team is the property and MyTeam is the value I am trying to filter on.
[Reply][Quote]
Tony Joanes
Posts: 71
 
Re: Dependant lookup pre filtersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 May 10 7:51 AM
Just for if anyone is interested:

Get the current HttpContext LookupState, create a new LookUpFilterState and add this in.

The values get cached so this will over write the filter state.

Get the current cache-
object c = System.Web.HttpContext.Current.Cache[cacheid]

Create lookup state-
Sage.SalesLogix.HighLevelTypes.LookupState ls = (Sage.SalesLogix.HighLevelTypes.LookupState)c;

Create new filterstate and add it to the lookupstate.
Sage.SalesLogix.HighLevelTypes.LookupFilterState lfs = new Sage.SalesLogix.HighLevelTypes.LookupFilterState();

Job done!!!!!
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Dependant lookup pre filtersYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jun 11 12:35 PM
fiogf49gjkf0d

hmm.....so where and how do I add my new filter condition to this new filter state?


 


Does anyone know the difference between CondOperator and OperatorCode?


 


What is the correct spelling for invoking a "Not Equal to" operator?


 


Thanks!


 


RJ Samp

[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:38:58 PM