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.