back to top

Changing the Completion Message for Report Jobs in Infor CRM

When a user runs a report in Infor CRM, it starts a report job on the server. While this is happening, the user will see a progress dialog. When it is complete, the progress dialog changes to display the text “The job has completed successfully” and presents a link for the user to download the completed report as a PDF. This might be confusing to some users since all they know is they were running a report. They don’t know that a “job” was started and completed on the server or what that means to them. However, you can change this text to something more meaningful for the user.

First, one thing to note, this progress dialog will show for running any jobs. Not just for running a report. If it were just for reports, you could likely override the text in the Sage/Utility/nls/Jobs.js file (the text is there in root.jobCompletedSuccessfully). However, that might make things confusing for when other types of jobs complete. Instead, I’m going to subscribe to the topic of when a job is complete. I’ll check the link to see if it is a download link (which, for reports, will use Sage.Utility.File.Attachment.getAttachment) and then modify the text in the dialog for only jobs with a file to download.

This is what the out of the box dialog looks like:

The code looks like this:

require(['dojo/_base/connect', 'dojo/query', 'dojo/dom'], function(connect, query, dom) { 
    connect.subscribe('/job/execution/changed', function() { 
        var lnk = query('#progressDialogLinkDiv a').first();
        if (lnk && lnk.attr('href') && lnk.attr('href').length && lnk.attr('href')[0].indexOf('Sage.Utility.File.Attachment.getAttachment') > 0) {
            var elem = dom.byId('progressDialogMessageDiv');
            if (elem) elem.innerHTML = 'Your report has been generated. Click the link below to download the file:';
        }
    }); 
});

This code will result in the following when a report job is run:

You can add this code in a script file using my Custom Loader Module o just add it to the base.master file inside a script block.

It’s a bit hacky, but any more direct way would require replacing the _updateProgress function in the Sage.Utility.Jobs.js code. One thing to note, if you are using my FX.ReportUtilityJS code to start report jobs from client-side code, it already does have the ability built-in to override the completion text when a report is run.

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
Ryan Farley
Ryan Farleyhttps://customerfx.com/article/author/ryanfarley/
Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

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