cancel
Showing results for 
Search instead for 
Did you mean: 

Deselect tableView after click button

Former Member
0 Kudos

Hi,

How do I deselect the selected rows in MULTISELECT mode after I ckick the button? I have tryed to clear selectedRowIndexTable but not work. Any idea? Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Eason....

to deselect all you must "CLEAR" the selectedRowIndexTable but not with the ABAP clear command.

USE REFRESH instead...

SAMPLE:

REFRESH selectedRowIndexTable.

Kind regards

Ariel

athavanraja
Active Contributor
0 Kudos

alternatively you can use the following code.

cl_htmlb_manager=>check_tableview_all_rows( rowcount = n

request = request

id = '<tableview id>'

keytable = keytable "table containing the key values of your itab

check = '' ). "if its 'X' all items will be selected and ' ' will uncheck all items.

Regards

Raja

Former Member
0 Kudos

Thank you very much, Gentlemen.

I use the following code to deselect:

DATA: table_event TYPE REF TO cl_htmlb_event_tableview.

cl_htmlb_manager=>check_tableview_all_rows(

rowcount = table_event->ROWCOUNT

request = request

id = '<my_tableView_id>'

keytable = table_event->PREVSELECTEDROWKEYTABLE

check = '' ).

regards,

Eason

athavanraja
Active Contributor
0 Kudos

If your question is answered, can you mark this thread answered and reward points suitably.

Regards

Raja

Answers (0)