The Infor Communities is globally accessed system by Infor and its customers, please do not post or upload any content that could be deemed as sensitive, confidential or subject to any data regulation requirements. If you are unsure whether or not the content contains sensitive, confidential or has any data regulation requirements, please seek the advice of your internal security, legal, and compliance experts.

Infor M3H5 - Disable multiselect on list (datagrid)

Hi,

How to disable multiselect on M3H5 list (datagrid) and set it to be single row selection? I’ve try to do the following setting in my script however it doesn’t work. When user hold CTRL + select on row or Shift + click on row, with the following setting user still able to do multiselect (multiple selected rows are highlighted).

ExampleCode.prototype.run = function () {
var _this= this;
var grid = this.controller.GetGrid();
grid.setOptions({ multiSelect: false }); // to disable multiselect
var handler = function handler(e, args) { _this.onSelectionChanged(e, args); };
grid.onSelectedRowsChanged.subscribe(handler);
this.attachEvents(this.controller);
};

What I want to achieve is :
When user hold CTRL + select on row / Shift + click on row, there is always one row is being selected (this.controller.GetGrid().getSelectionModel().getSelectedRows() only show one item in its return array) and only one row (the selected row) being highlighted.

Can anyone help me on this? Thanks in advance.