Hi,
I need to get the index of a specific line in a table. Selection mode is set to none. The first column contains a menu with two menuActionItems. When I choose an actionitem my event handler is called with parameter WDEVENT TYPE CL_WD_CUSTOM_EVENT. As I understand you have to use this parameter to get the index from the table line.
I have tryed with the following code in my event handler method:
DATA:
node_lines TYPE REF TO if_wd_context_node,
elem_lines TYPE REF TO if_wd_context_element,
l_index TYPE i.
elem_lines = wdevent->get_context_element( name = 'LINES' ).
l_index = elem_lines->get_index( ).
This does not work. The elem_lines is initial after I try to get it.
Hope that someone can guide me in the right direction.
Thanks,
Morten