cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear lead selection

Hi,

I have a web dynpro alv list and I should implement a button in toolbar to deselect items. I only fand method lo_node->clear_selection( ) or lo_element->set_selected( abap_false ) which can clear the normal selection. But for lead selection I didn't find a solution. Does any body know how to do that?

Thank you and best regards,

Wenwen

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisPaine
Active Contributor

There is a constant in the IF_WD_CONTEXT_NODE of NO_SELECTION

use the SET_LEAD_SELECTION_INDEX method of IF_WD_CONTEXT_NODE

so:



lo_node->set_lead_selection_index( if_wd_context_node=>no_selection).

0 Kudos

Hi Chris,

Very nice, it works! Thank you very much!

best regards,

Wenwen