
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 900px wide and a height of 600px.
require([ 'dojo/aspect', 'Sage/UI/SDataLookup' ], function ( aspect, SDataLookup ) { aspect.before(SDataLookup.prototype, 'showLookup', function () { this.dialogWidth = 900; this.dialogHeight = 600; }); aspect.after(SDataLookup.prototype, 'showLookup', function() { dojo.style([this.id, '-Dialog'].join(''), 'min-width', '90%'); dojo.style([this.id, '-Dialog'].join(''), 'min-height', '600px'); dojo.style([this.id, '-Dialog'].join(''), 'left', '30px'); }); });
Subscribe To Our Newsletter
Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!
You have Successfully Subscribed!