Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 18, 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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Change Report Recordset default.
Chip
Posts: 29
 
Change Report Recordset default.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 07 8:46 AM
Can I change the Default that is used in reporting to always Be "Current Record"? Our users have chose "ALL Records" many times and they have asked if we can changethe default. Maybe I could even remove the ALL Records option.

I am new to Saleslogix so if this is a simple question I apologize.

Thanks!
[Reply][Quote]
Jeff Weight
Posts: 219
 
Re: Change Report Recordset default.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Dec 07 11:47 AM
Yes, you can change the default, but it will require a little code work. The screen you are talking about is a Form plugin called "SLX Report Manager View," but I think the plugin you are looking for is an included script for the Form called "SLX Report Condition Builder Controller." If you look in this VBScript, you'll find a method called LoadReportFilters. Inside the function, at the end actually, is the line

objComboBox.ItemIndex = 0

That's the line that tells it to display all records, even if the options for current record or current group are available. If you want the current record to pop up as a default, try changing that last line to

If objComboBox.Count > 1 Then objComboBox.ItemIndex = 1 Else objComboBox.ItemIndex = 0


That should do it, I think, but I haven't tested it. Good luck.
[Reply][Quote]
Chip
Posts: 29
 
Re: Change Report Recordset default.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 07 3:00 PM
Perfect Thanks!
[Reply][Quote]
Chip
Posts: 29
 
Re: Change Report Recordset default.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 07 3:08 PM
Actually it is complaning about the objComboBox.Count .. it says it is not supported and when I look at the opbject thru Visual Studio count is not an option ... is there another way to count the items?

Again thanks for the help!
[Reply][Quote]
Chip
Posts: 29
 
Re: Change Report Recordset default.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 07 3:08 PM
Actually it is complaning about the objComboBox.Count .. it says it is not supported and when I look at the opbject thru Visual Studio count is not an option ... is there another way to count the items?

Again thanks for the help!
[Reply][Quote]
Chip
Posts: 29
 
Re: Change Report Recordset default.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 07 3:08 PM
Actually it is complaning about the objComboBox.Count .. it says it is not supported and when I look at the opbject thru Visual Studio count is not an option ... is there another way to count the items?

Again thanks for the help!
Sorry for the Spam I only clicked once I swear
[Reply][Quote]
Jeff Weight
Posts: 219
 
Re: Change Report Recordset default.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Dec 07 9:43 AM
Oops, sorry - it should be objComboBox.Items.Count

So the whole line should read:

If objComboBox.Items.Count > 1 Then objComboBox.ItemIndex = 1 Else objComboBox.ItemIndex = 0


I guess it is important to test code first...
[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): 8/18/2025 8:04:07 AM