back to top

Running a Report from a Button in the Saleslogix Web Client v8.1

Here is a quick rundown of how to invoke a report for the current record in the various levels of SLX.

In 7.54

btnPreview.OnClientClick = "ShowReportByName('Sales Order:SalesOrder Detail'); return false;";

In 8.0

btnPreview.OnClientClick = @"require(['Sage/Reporting/Service'], function (Service) {
var oReporting = Sage.Services.getService('ReportingService');
oReporting.showReportByName('Sales Order:SalesOrder Detail'); return false;});";

In 8.1

btnPreview.OnClientClick = @"var oReporting = Sage.Services.getService('ReportingService');
oReporting.showReport('Sales Order:SalesOrder Detail', 'SALESORDER', Sage.Utility.getCurrentEntityId());
return false;";

Please note that somewhere along the way I think the family that reports are saved in my have changed from SalesOrder to Sales Order.  Those parts of the code are shown in bold. Si if one doesnt work try with or without the space.

 

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Kris Halsrud
Kris Halsrud
Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

7 COMMENTS

  1. It doesn’t appear that the client side reporting service exposes the ability to save the report as an attachment, at least from what I can tell. (wwwrootSlxClientjscriptSageServicesReportingService.js). Not sure the best way to make that happen.

    • Know this is an old-er blog post, but did you ever figure out how to save the report as an attachment? I’m currently trying to do this with a custom Quote report. The attachment save looks successful when you execute the OOTB Generate Proposal report, but not for my custom one. I’ve even tried the reporting service startWizard() call, but still no attachment.

    • Jim I never did look into saving it as an attachment. The client side library only offers the ability to run the report and download it but not just save it as an attachment.

  2. I tried to get this to work on v8.3, and found that I needed to make a few changes.
    I added this JavaScript code below, to the On Client Click event for a button on the Sales Order details page.

    if (Sage.Services.hasService(“ReportingService”)){
    var oReportingService = Sage.Services.getService(“ReportingService”);
    if (oReportingService) {
    oReportingService.showReport(‘Sales Order:Sales Order Detail’, ‘SALESORDER’, Sage.Utility.getCurrentEntityId());
    }
    }

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Infor CRM SLX 10.0: Delegate Ownership Changes for “Everyone” Records

Learn how the new EveryoneOwnerAssignment secured action in Infor CRM SLX 10.0 allows designated users to change ownership of Everyone-owned records without requiring Administrator access.

Related Articles

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Related Videos