Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, February 21, 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 Client (Pre-7.2)
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Client (Pre-7.2) | New ThreadView:  Search:  
 Author  Thread: Bug/Work around
Jeff Ballard
Posts: 326
 
Bug/Work aroundYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 07 4:38 PM
fiogf49gjkf0d
I've discovered (well, the customer actually) has discovered a bug in the query builder functionality in the web client, version 6.2.6. If you add a field such as "createdate" to the advanced lookup and then "Save this lookup as a group", you'll get an error because it puts double slashes in the "value" field for the date, i.e. "5//7//2007". I've found a workaround for it, though.

In the ASPScripts folder, there's a .NET page "QueryBuilderMain.aspx". Find the function "addDataToConditionGrid". In the else part for the if statement below the "//.value" comment, add this:

conditionObj.value = conditionObj.value.replace(/\/\//g, "/");

So, the whole "if" statement should like like this:

			
//.value
if ((conditionObj.value == '') || (conditionObj.value == 'NULL')) {
row.cells(5).innerText = ' ';
} else {
conditionObj.value = conditionObj.value.replace(/\/\//g, "/");
row.cells(5).innerText = conditionObj.value;
}


The only caveat is that this will strip out *any* double slash and replace it with a single slash. So, if your users might actually ever search for two forward slashes, then don't' do this.

In theory, to get the data type, there's an XML object that will have the fieldtype which will tell you what data type it is, but the fieldtype attribute isn't getting populated. I've found that on con_conmpl there is a hidden field at the bottom called "conditions" which has the conditions in it. I'm not sure why the group builder (QueryBuilderMain.aspx) isn't using that, but it doesn't. It's using the groupXML variable on the JS file groupmanager.js, which I would think should get the field type, but it doesn't. I know there's a way to get and use the data type before I do the replace, but since the customer doesn't want to pay for me to investigate that and states they won't be searching for a "//" (hope they don't ever want to add a lookup on URL), I'm moving on with the code as is.

Maybe this will help someone somewhere down the road or it'll get fixed (if it's not already fixed in 7.x).

Jeff
[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): 2/21/2025 5:39:08 AM