Skip to Content
0
Former Member
Apr 04, 2013 at 11:06 AM

Webdynpro Dynamic Table Event Handling

70 Views

Hi,

I have created table dynamically with dynamic node creation during run time,say that i have 5 columns in it , of which two column's with text fields and remaining with link to action with context menu.When I try to perform context menu action,can I know to which column and row am i performing the action by any means, so that to update my necessary conditions.

DATA event_element TYPE REF TO if_wd_context_element.

DATA lv_info TYPE string.

DATA wd_element TYPE REF TO cl_wd_view_element.

event_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).

lv_info = event_element->get_path( withoutcontroller = abap_true ).

DATA lv_i TYPE int1.

lv_i = event_element->get_index( ).

The above mentioned code can get me the index of table but am unable to find how to get column to which action is performed , Can you kindly find me a solution.

Thanks,

Anvesh.