cancel
Showing results for 
Search instead for 
Did you mean: 

lead selection

Former Member
0 Kudos

Hi,

In webdynpro abap when i click on any cell to update, i want that entire row to be selected.whenever i click on a differrent cell, that particular row is not getting selected. Can some one help me to fix this problem please?

Thanks,

k.c.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

In the event handler for the cell selection, you can call the method set_lead_selection of if_wd_context_node and pass the 'CONTEXT_ELEMENT' obtained from wdevent into this method.

Hope this helps.

Regards,

Neha

Former Member
0 Kudos

Hi Neha,

in the event handler method i wrote the following lines. Still it is not selecting current row. Could you please help me.

data : ObjNode type ref to if_wd_context_node,

elem_details Type ref to if_wd_context_element.

ObjNode = wd_Context->Get_child_node( name = 'TZOBJ_TYPE_STR' ).

  • elem_details = ObjNode->get_element( ).

elem_details = WDEVENT->get_context_element( 'CONTEXT_ELEMENT' ).

data : lead_selection_index TYPE i.

  • lead_selection_index = ObjNode->get_lead_selection_index( ).

lead_selection_index = elem_details->get_index( ).

ObjNode->SET_LEAD_SELECTION_INDEX( INDEX = lead_selection_index ).

thanks,

k.c.

Former Member
0 Kudos

Hi,

Try something like this -

obj_node->set_lead_selection( element = elem_details).

Regards,

Neha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Try out this demo example .

May help you .

WDR_TEST_TABLE ,

WDR_TEST_EVENTS.

Chill

Parag