Major
Detail
Major
Detail
In the SchedulerGui, the detail view "Selected run" is located at the bottom right. This is always empty.
Analysis
This is because the selection in the table at the bottom left does not work. It should be possible to select something there. But the selection is not applied by the server, so it is always removed immediately.
The reason for this is TreeTableComponent.findNodes(Object). There it is tried to find the node for the selected subject object. To do this, it first checks whether the treeModel is a tl:IndexedTLTreeModel. However, it is a tl:TaskResultTreeTableModel. So next we examine if getTreeModelBuilder() returns anything. But it returns null. As a result, the method returns there are no nodes for this subject object.
The problem occurs only on TL 7. In TL 6 it works correctly.
The tl:CompareTreeTableComponent and tl:InspectorTreeComponent are also affected by this misbehavior.
Stacktrace
TaskResultTreeComponent(TreeTableComponent).findNodes(Object) line: 461 TaskResultTreeComponent(TreeTableComponent).getNodes(Collection<?>) line: 442 TaskResultTreeComponent(TreeTableComponent).onSelectionChange(Collection<?>) line: 946 TreeTableComponent$1.handleNewValue(ComponentChannel, Object, Object) line: 215 DefaultChannel(AbstractComponentChannel).notifyNewValue(Object, Object) line: 232 DefaultChannel.storeValue(Object, Object) line: 42 DefaultChannel(AbstractComponentChannel).set(Object) line: 92 TaskResultTreeComponent(Selectable).setSelected(Object) line: 115 TaskResultTreeComponent(TreeTableComponent).setSelectionChannel(Collection<?>) line: 327 TaskResultTreeComponent(TreeTableComponent).setDefaultSelection(AbstractTreeTableModel<?>) line: 1043 TaskResultTreeComponent(TreeTableComponent).validateModel(DisplayContext) line: 299 TaskResultTreeComponent(LayoutComponent).doValidateModel(DisplayContext) line: 4321 ...
Test
- Select and start a task in Administration > Technical Administration > Control Program. In the TreeTable, which shows the results of the last runs, the lines should be selectable.
- Generate demo data and select and edit e.g. a demo A. Then switch to the version comparison table. The rows of the version comparison table should be selectable.
- Inspect a component with the GUI inspector and then click on the button that uses a TreeTable to display the variables. The rows of this table must be selectable.