Quantcast
Channel: Customer FX
Viewing all articles
Browse latest Browse all 981

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 981

Trending Articles