cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove lead selection in table dynamically

amber_garg
Active Participant
0 Kudos

I have a table in webdynpro which allows multiple selections of row. I have a button which is supposed to be clicked after selecting single or multiple rows. After clicking on the button I want to remove the lead selection of the selected rows (which is shown in golden color for each selected row) .

I tried REMOVE_SELECTED ELEMENTS and it works fine but only if i select the row by pressing CTRL. If i had selected a single row by just a mouse click (without ctrl) then it wont work.

THANKS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hallo Amber,

If_wd_context_node has static attribute no_selection. use that to clear the lead_selection_index.

node->set-lead_selection_index( if_wd_context_node=>no_selection ).

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Try set lead selection = -1

Regards

Yuval