Abap web dynpro UI element table
I have added UI element Table in a view.I have added a button in one column.
When i click on that button , how can i get reference to the row in which that button is present.
I can get reference when i select a row. But if i select 1st row and click on 2nd roes button , i get reference of 1st row. How to get reference of 2nd row in ABAP web dynpro.
Thanks and regards ,
U can Use
Data lr_event type ref to if_wd_context_element. lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ). lr_event->get_static_attributes( IMPORTING Static_attributes = ls_value ).