back to top

Infor CRM Web Client – Running a Report from a Button and Allowing Users to Choose the Output Format

In previous posts I had written about how to use javascript and the client side Infor report service to invoke a report from a button.

In this post I talked about the simplest way which just runs the report for the current entity and saves it as a PDF.

In this post I talked about how using a different service call allows for custom record selection criteria to be added, rather than the single primary ID being passed in by the first link.

Using that second option gives us another possibility, allowing the user to define what kind of output they want.

To do this we can modify our call to the setReportJob and instead of calling showReport, we instead create a options object, passing in our parameters and then call startWizard, passing in our options object. In our custom options object we simply pass into the wizardOptions just to hide step 1, rather than the defaul of hiding step 1 and 3 (the output type).

Here is a complete sample:

        var oReporting = Sage.Services.getService('ReportingService');
        if (oReporting) {
            var pluginId = oReporting.getReportId('Opportunity:Opportunity Detail');
            oReporting.setReportJob(pluginId, 'OPPORTUNITY', Sage.Utility.getCurrentEntityId());            
            var contextSvc = Sage.Services.getService('ClientEntityContext');
            var context = contextSvc.getContext();
            var entityId = context.EntityId;
            oReporting.reportJob.rsf = "{OPPORTUNITY.OPPORTUNITYID} = 'Q1RASA501HGU' or {OPPORTUNITY.DESCRIPTION} = 'Winner Winner Chicken Dinner' ";
                        
            var options = {
                reportId: pluginId,
                reportOptions: {
                    wizardOptions: {
                        hiddenSteps: [1]
                    },
                    scheduleOptions: {
                        executionType: 0
                    },                    
                    conditionOptions: {
                        conditionsConnector: 'And',
                        recordSelectionFormula: oReporting.reportJob.rsf
                    }
                }
            };
            oReporting.startWizard(options);
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.

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