cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro Dynamic Table Event Handling

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184497
Participant
0 Kudos

Create an event for table cells. In the popup check transfer UI details.

Now you will have the required details.

For Example, TEST is my action and the import parameters will be

ONACTIONTEST

WDEVENT                    TYPE CL_WD_CUSTOM_EVENT

CONTEXT_ELEMENT     TYPE IF_WD_CONTEXT_ELEMENT

ID                                  TYPE STRING.

Thanks.