Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, June 5, 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: SLX 8.1 Prefilters with multiple conditions
Byron Branfield
Posts: 10
 
SLX 8.1 Prefilters with multiple conditionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 May 14 5:10 AM

Hi guys


 


I am trying to apply a prefilter on form load to filter the ISVApplication lookup by Country and worldwide (true). If I set one condition ie Wordwide = 'T' the prefilter works fine but as soon as I add in another condition no records are returned.


 


I have been struggling with this for a while now, any help would be greatly appreciated.


 


I have the following code:


 


Sage.Entity.Interfaces.ITPThirdPartyAssociation assoc = this.BindingSource.Current as Sage.Entity.Interfaces.ITPThirdPartyAssociation;


object parent = this.GetParentEntity();


if (parent is Sage.Entity.Interfaces.IAccount)
{
assoc.Account = (Sage.Entity.Interfaces.IAccount)parent;
}

string sCountry = assoc.Account.Address.Country.ToString();
textbox1.Text = sCountry;


 


Object[] myObjArray = new Object[1];


myObjArray.SetValue(assoc, 0);
ISVApplication.LookupExclusions = myObjArray;
ISVApplication.LookupPreFilters.Clear();

LookupPreFilter pf = new LookupPreFilter();
pf.CondOperator = "Not Equal To";
pf.PropertyName = "Worldwide";
//pf.FilterValue = "%' AND (assoc.TPISVApplication.Countries like '%" + sCountry + "%' OR assoc.TPISVApplication.Worldwide = 'T') AND 'A' != 'B";
pf.FilterValue = "XXX' AND assoc.TPISVApplication.Worldwide = 'T' AND 'A' != 'B";
pf.PropertyType = "System.String";
ISVApplication.LookupPreFilters.Add(pf);

[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/5/2025 2:41:08 AM