Enhancement
Major
#17126
"Next / Previous" buttons in dialogs for row objects of tables
A detail dialog for a table should be able to jump to the next/previous row object without having to close the dialog and reopen it for the new row object.
The table should mark the opened row in the background, so that you can see (even after closing the dialog) how far you have come.
Solution
The functionality can be configured trivially in every detail dialog (which was configured especially for a table) via TL-Script-Buttons:
e.g. button "Next":
- Takes as input the combination of table rows and form model.
- Calculates the index of the form model in the list of rows.
- Sets the model (and optionally the table selection) to the table row with index + 1.
- Grays out if the index == number of rows - 1.
Two appropriately configured handlers "Next"/"Back" have been added to the template for "Tables with edit dialogs". In existing tables, the functionality can be retrofitted according to the above scheme.
Test
- /com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/layout/inapp/templates/TestTableDialogNavigation.script.xml