Getting Timeless Activities to Display Correctly in Groups in Infor CRM 8.3.09

In my last blog I talked about how to fix timeless activities to show the correct date in sdata grids.

A different fix needs to be put in place in order to have these same dates show correctly if they are added to a column in a group layout for the Infor CRM 8.3.09 web client.

Luckily a similar approach to my last blog could be used.

Using Ryan’s custom loader module all that is required is to create a new folder under the Custom\Modules area. I would suggest something like “TimelessActivityGroupFix”. Then in this folder add a main.js with the following code:

require([
    'dojo/aspect',
    'Sage/Utility/Groups', 
    'Sage/UI/Controls/GridParts/Columns/DateTime'
],
function (
    aspect, 
    groupUtility, 
    dateTimeColumn
) {
    aspect.before(groupUtility, 'getGridStructure', function (layout, hideWebLink) {
        layout.forEach(function (item) {
            if (item['displayPath'].indexOf('Activity') !== -1) {
                dateTimeColumn.prototype.useFiveSecondRuleToDetermineTimeless = true;
            }
        });
    });
});

This function was lifted from the 8.4 version of the Sage.Utility.Groups widget. Obviously in 8.4 this behavior is fixed.

ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!