Hi,
I have two tableviews in the same view (using MVC). Both tableviews are set with SINGLE select.
What I would like to achieve is to deselect the selected row in table1 when a row is selected in table2 (and the other way round), so that no more than one row is selected at any time over the two tables.
In the DO_HANDLE_EVENT of my controller I'm doing the following:
DATA: tv TYPE REF TO cl_htmlb_tableview.
DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
tv ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableView'
id = 'table1' ).
IF tv IS NOT INITIAL.
tv_data = tv->data.
cl_htmlb_manager=>check_tableview_all_rows(
rowcount = tv_data->rowcount
request = request
id = 'table1'
keytable = tv_data->prevselectedrowkeytable
check = '' ).
ENDIF.
But this does not work: it deselects ALL rows in both tableviews (even the one I want to keep selected).
Please advise.
Many thanks,
Christian