onRowSelectionChanged
//Enable a button if exactly 1 line is selected
let selectedRows = app.getFieldValue("myGrid.selectedRows");
app.setEnable("myButton", selectedRows.length === 1);
//Enable a button if exactly 1 line is selected
let selectedRows = app.getFieldValue("myGrid.selectedRows");
app.setEnable("myButton", selectedRows.length === 1);