Detlev, if you are out there, please help!
I have been trying to follow the doc and examples for selecting an item in a TableView. I have got the event to fire, but there is no such event as TableSelectionEvent, instead you must use TableRowSelectionEvent.
Also, this does not have the promised getRowIndex() method. The javadoc say you can get the selected row from Event.getParams(), but this returns null!
Furthermore, SAP have a working example of selecting TableView rows and keeping the selection, but the code samples cannot possibly be from the working example.
Try the following:
TableRowSelectionEvent trse = (TableRowSelectionEvent) event; TableView table = (TableView) this.getComponentByName("table"); int realSelectedRow = trse.getVisibleRowIndex() + table.getVisibleFirstRow() - 1;
Brian
Hi Martin,
just in addition to Brian's answer, see How to use onRowSelection !!!! for further discussions - and with that, maybe you'll like the idea of using search functionality of SDN 😊
And if you ask that directly for my help --- please give some respect to my ending notes on How to create datasource alias in EP project? ... Your misfortune is that I have a quite good memory... 😊
Add a comment