ALV OO: how to handle events from two alv_grids ?
hope someone can help me out.
In my program i have three dynpros with differt alv of cl_gui_alv_grid.
In each of these grids i want to implement a "handle_double_click" event.
How can i do this?
acually i have my class lcl_event_receiver and there i have implemented the handle_double_click method.
but how can i figure out which grid triggered the event?
in each dynpro i have
SET HANDLER event_receiver->handle_double_click FOR grid1.
SET HANDLER event_receiver->handle_double_click FOR grid2.
SET HANDLER event_receiver->handle_double_click FOR grid3.
now in the class implementation i need something like
if grid 1 X
if grid 2 Y
using the sender addition you can differentiate.
double_click for event double_click of cl_gui_alv_grid importing e_row e_column es_row_no sender, "<====This can be used
sender hold the Current Grid reference , based on that you can differentiate.