Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, November 27, 2024 
 
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: application.reports
John Crumpton
Posts: 26
 
application.reportsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 07 9:03 AM
fiogf49gjkf0d
Has anyone worked with this?
I need to open a report with the filters set for only the current accountid...

Dim objRoport
Set objReport = Application.Reports.Item(“myReportName”)

objreport.filterconditions = no idea about the syntax here?
objreport.show ? how do i make it open the report?

Thanks,
john
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: application.reportsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 07 12:57 PM
fiogf49gjkf0d
Application.Reports is basically used to enumerate the reports in the system. To use the reports you'll want to use Application.BasicFunctions.GetCrystalReport or use the Application.Reports(index).NativeObject.

Both of these return a Crystal RDC object for the report with the connection information already set. From that point there is nothing SLX specific, all just manipulation of the native Crystal RDC object. You can download the Crystal RDC documentation here: http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=29

As for displaying the report. You'll either need to drop the crystal report viewer activex on your toolbox and add to a form or just invoke the report via DoInvoke and set the condition via a script attached to the reports OnOpen event using Application.BasicFunctions.ReportSetConditions.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: application.reportsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 07 1:03 PM
fiogf49gjkf0d
You can also use/include the OOTB script called System:SLX Report Controller. It can do most of the leg work for you as well.
[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 © 2024 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): 11/27/2024 4:33:13 AM