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: Changing the default condition operator in the SalesLogix Group Lookup Control in the SalesLogix from "Starting with" to "Contains"
Byron Branfield
Posts: 10
 
Changing the default condition operator in the SalesLogix Group Lookup Control in the SalesLogix from "Starting with" to "Contains"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 May 14 5:28 AM

Hi, in reference to this article:


http://customerfx.com/pages/integrationblog/2012/05/22/changing-the-default-condition-operator-in-the-salogix-group-lookup-control-in-the-saleslogix-7-5-4-web-client.aspx


Does anyone know how to do this in SLX 8.1 as the code as changed a lot and cant seem to find the relevant javascipt files?


Basically I would like to change the default operandor in the Account Lookup from "Starting with" to "Contains" as well as defaulting the focussed field to the text field for searching instead of the first field.


 


Regards,


Byron

[Reply][Quote]
Marcos Orfila
Posts: 40
 
Re: Changing the default condition operator in the SalesLogix Group Lookup Control in the SalesLogix from "Starting with" to "Contains"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 May 14 8:28 AM

It may not be simple the first time, but once you've done it once, it will help you extend the functionality across all JavaScript code.


You need to substitute the function "sortedConditionManagerFields" from the class "Sage/UI/ConditionManager" (see the file "jscript\Sage\UI\ConditionManager.js"). In order to extend the class, see the BigDeal customizations for an example on how to properly customize files in the jscript folder:


http://customerfx.com/pages/integrationblog/2013/10/14/saleslogix-v8-big-deal-example-file.aspx


Inside your custom JS file, substitute the widgetTemplate this way:


ConditionManager.prototype.getOperatorsByField = function (field) {

// OOB code here, with customizations

}


The only thing you need to change to the original getoOperatorsByField OOB code is to change the order of the "stringLikeOptions" so the "Contains" (like) operator is shown in the first place for every Lookup control.


If you want to do so only for Account, you may check for the current family or any other information that can be accessed from the "this" object or any other piece of code.


Regards,


     Marcos


 

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Changing the default condition operator in the SalesLogix Group Lookup Control in the SalesLogix from "Starting with" to "Contains"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 May 14 1:49 AM

I maybe being dumb - but, in Tools | Options | Group - there is the option Default Lookup Condition - this defaults to Starting With. Wouldn't you just change it here ?

[Reply][Quote]
Marcos Orfila
Posts: 40
 
Re: Changing the default condition operator in the SalesLogix Group Lookup Control in the SalesLogix from "Starting with" to "Contains"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 May 14 7:41 AM

Mike is right. The customizations I mentioned were part of other customizations that included changing the order of the Lookup options list, forcing the first operand to a specific one, etc. So it would be overkilling for the problem stated by Byron.


Mike's solution is simpler for this particular problem.

[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:45:34 AM