6/28/2025 5:31:05 PM
|
|
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!
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.
|
|
|
|
Dependant lookup pre filters
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. |
|
|
|
Re: Dependant lookup pre filters
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!!!!! |
|
|
|
Re: Dependant lookup pre filters
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 |
|
|
|
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!
|
|
|
|
|
|
|
|