Running a report from a button in the SalesLogix web client version 8

In a previous post I talked about how to run a Crystal Report from a button in the SalesLogix web client on version 7.5x.  The client side reporting functionality has been redone in version 8.  It is now included in a client side service. Lets compare the old and new ways of doing things.

 

Before in version 7.5x you could do something like this to launch a report:

btnPreview.OnClientClick = “ShowReportByName(‘SalesOrder:SalesOrder Detail’); return false;”; //v7.5 code

In version 8, you need to reference the service and retreive an instance of it like so:

btnPreview.OnClientClick = “require([‘Sage/Reporting/Service’], function (Service) {var oReporting = Sage.Services.getService(‘ReportingService’);oReporting.showReportByName(‘SalesOrder:SalesOrder Detail’); return false;});”; //v8 code

A little more code to make it work, but not bad.

ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

1 Comment

  1. I was able to use your code to view the report in popup window. I am having once, popup window does not have toolbar to print or export. any help will be greatly appreciated.

    Atif Rana
    arana@tensarcorp.com

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!