Also take a look at this topic.
Hi Manish,
take a look at this code:
DATA: TABLE_EVENT TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW,
TABLE TYPE REF TO CL_HTMLB_TABLEVIEW,
selectedRowsTable type INT4_TABLE.
TABLE ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = REQUEST
NAME = 'tableView'
ID = '<your controller id>_<table id>' ).
if table is not initial.
TABLE_EVENT ?= TABLE->DATA.
clear selectedRowsTable.
selectedRowsTable = table_event->PREVSELECTEDROWINDEXTABLE.
endif.
If you are using a more complicated controller hierarchy the id will be different.
Add a comment