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: LookupPreFilter never updates
Remy
Posts: 42
 
LookupPreFilter never updatesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Aug 11 8:27 AM
fiogf49gjkf0d

This issue has been brought up many times but never solved fully.


I have Load Action code to dynamically assign a prefilter value to a lookup control:


lupProduct.LookupPreFilters.Clear();
oFilter.LookupEntityName = "Sage.Entity.Interfaces.IProduct";
oFilter.PropertyName = "Family";
oFilter.OperatorCode = "=";
oFilter.PropertyType = "System.String";
oFilter.FilterValue = o.Type;
lupProduct.LookupPreFilters.Add(oFilter);

 


This works fine for the first record loaded, but when I switch to another record with a different o.Type, the filter still just remembers the first record's o.Type. And will only update after you log out/log back in, or re-deploy/resetiis.


Any ideas on how to get this to update after each record change?


 

[Reply][Quote]
Mark Dykun
Posts: 7
 
Re: LookupPreFilter never updatesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Aug 11 9:21 AM
fiogf49gjkf0d

This is fixed in 7.5.4 with an Invalidate cache and 7.5.3 WR6 I believe. But I have documented here as well. http://codesnap.wordpress.com/2011/05/16/dropdownlistsaleslogix-lookup-issue/

[Reply][Quote]
Remy
Posts: 42
 
Re: LookupPreFilter never updatesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Aug 11 10:27 AM
fiogf49gjkf0d

I tried the method described in your post but still not resolved...


Here is my code:



 


<p>System.Web.UI.WebControls.DropDownList list;

Type type = lueProduct.GetType();

list = type.GetField("_List", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetValue(lueProduct) as System.Web.UI.WebControls.DropDownList;

 


if (list != null)

{

list.Items.Clear();


lueProduct.LookupPreFilters.Clear();

oFilter.LookupEntityName = "Sage.Entity.Interfaces.IProduct";

oFilter.PropertyName = "Family";

oFilter.OperatorCode = "=";

oFilter.PropertyType = "System.String";

oFilter.FilterValue = o.Type;

lueProduct.LookupPreFilters.Add(oFilter);


}


 


[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:39:07 PM