cancel
Showing results for 
Search instead for 
Did you mean: 

reset selection in ALV

Former Member
0 Kudos

Hi fellow WD4A fans

We've got an ALV on a WD4A view which allows multiple lines to be selected,

Can anybody tell me how to completely reset the selection when returning to this view. So, when I return to the view I want none of the lines to be selected any longer.

How can this be done?

Regards

Wouter Heuvelmans

Pyramid Applied Solutions

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Wouter,

Place the code above (in the previous post) in the inbound handler method used to enter into the view where you want to unselect the rows.

Regards,

Ram

Former Member
0 Kudos

Hi Ram,

Thanks, this is exactly what I was looking for.

Regards,

Wouter

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Wouter,

To remove all selections, just clear the context node which you have bound to the ALV.

Sample code:

DATA:

node_objects_info TYPE REF TO if_wd_context_node,

elem_objects_info TYPE REF TO if_wd_context_element,

stru_objects_info TYPE wd_this->element_objects_info.

node_objects_info = wd_context->get_child_node( name = wd_this->wdctx_objects_info ).

CALL METHOD node_objects_info-><b>clear_selection</b>.

Here, 'objects_info' is the node to which i have bound. Replace it with your node name.

Regards,

Ram