Monday, January 11, 2021

APEX: PopUP LOV multiple columns width control

 put following JS in the item 'initial js to run' field to control the columns width:

function(options) {

  var col, columns = options.columns;


  // set a minimum width for the dialog

  options.minWidth = 800;


  // set custom column widths for each column

  col = columns.SERVER_NAME;

  col.width = 120;

  col = columns.ENVIRONMENT;

  col.width = 220;

  col = columns.APP;

  col.width = 220;


  // the last two columns do not stretch

  col = columns.LOCATION;

  col.width = 80;

  col.noStretch = true;

  return options;

}