Displaying Actual Dates Instead of Relative Dates in Infor CRM (Saleslogix) Mobile

In the Infor CRM (Saleslogix) Mobile client, dates in group lists are displayed as relative dates. You’ll see dates in the group list like “10 days ago”, “3 months ago”, or “a year ago”, and so on. This applies to future dates as well, seeing values like “in a month”.

Example:

Notice the relative dates in the screenshot above. However, if you’d like to see actual dates instead of relative dates there is a simple solution.

Displaying Actual Dates in Group Lists

To display actual dates instead of relative dates in all group lists (keep in mind this change applies to all dates in all group lists), simply add the following to your ApplicationModule. Note: the reference to GroupUtility in the AMD references.

define('Mobile/CustomApp/ApplicationModule', [
    'dojo/_base/declare',
	'Mobile/SalesLogix/GroupUtility'
], function (
    declare,
	groupUtility
) {
    return declare('Mobile.CustomApp.ApplicationModule', Sage.Platform.Mobile.ApplicationModule, {
        loadCustomizations: function () {
            
            // Do not use relative dates in group lists
            groupUtility.groupFormatters.forEach(function(formatter) {
                if (formatter.name == 'DateTime') {
                    formatter.options.useRelative = false;
                }
            });
			
        }
    });
});

With that code in place you’ll see the actual dates.

ABOUT THE AUTHOR

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He’s been blogging regularly about SalesLogix since 2001 and believes in sharing with the community. He loves C#, Javascript, Python, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

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!