Resize the Lookup Popup in the Infor CRM Web Client

In the Infor CRM web client the lookup control’s popup dialog defaults to being something like 750px wide. Sometimes this may not be wide enough to incorporate a lookup whose grid contains a lot of columns. You can modify this behavior by extending the base sDataLookup widget.

In a previous post I talked about how to extend other widgets. Building of that methodology we can use the following code to modify the lookup popup dialog width and set it to 950px wide.

define('FX/CustomControlsModule', [
    'dojo/_base/declare',
    'dojo/ready',
    'dojo/aspect',
    'dojo/_base/lang',
    'Sage/UI/SDataLookup'
],
function (
    declare,
    ready,
    aspect,
    lang,
    sDataLookup
) {
    var customControlsModule = declare('FX.CustomControlsModule', null, {
        initailize: function () {
            aspect.before(sDataLookup.prototype, "showLookup", function () {     		
                if (!this.dialogWidth) {
                    this.dWidth = 950;
                    this.dialogWidth = 950;
                }
        });
    });
    return customControlsModule;
});
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!