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!
|
|
Change Report Recordset default.
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! |
|
|
|
Re: Change Report Recordset default.
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. |
|
|
| |
|
Re: Change Report Recordset default.
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! |
|
|
|
Re: Change Report Recordset default.
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! |
|
|
|
Re: Change Report Recordset default.
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  |
|
|
|
Re: Change Report Recordset default.
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... |
|
|
|