Small bug in Decision tables view

If you select a row in the grid and then press “Open in modeler” it will show that the decision table opened in the decision modeler view.
If you select a row, and double-click, it also works.
But if you double-click the row, without prior selecting it, an error might occur - NoSuchElementException.

This is because dmnDecisionTablesGrid in dmn-decision-table-list-view.xml, used by DmnDecisionTableListView.java , allows the cell selection
image

so when the grid’s doubleclick listener
dmnDecisionTablesGrid.addItemDoubleClickListener(e → openInModeler());
invokes openInModeler() method, the method is not able to perform
dmnDecisionTablesGrid.getSelectedItems()
because the row is not selected.

The solution is probably either to modify openInModeler to check if a cell is selected or best to prevent cell selection.

Kind regards,
Mladen

Hi,

Thank you for reporting the problem.

We’ll remove this double-click handler until we introduce some generic mechanism for details view opening that can be used in any Jmix screen. This handler was added to DMN tables screen by mistake.

The issue: Remove double-click handler in decision tables list view · Issue #2475 · jmix-framework/jmix · GitHub