12-04-2007 3:45 PM
Hi,
How to get the line number that was clicked through HOTSPOT?
Best Regards.
12-04-2007 3:58 PM
12-04-2007 3:48 PM
12-04-2007 3:53 PM
12-04-2007 3:58 PM
12-04-2007 4:08 PM
Hi,
1. First in the field catalog the field as hot sport enabled.
i_fieldcat-hotspot = c_x.
2. Use handler for hotspot event.
set handler event_receiver_grid->handle_hotspot_click for grid1.
3. In the definition
class lcl_event_receiver_grid definition.
public section.
methods:
handle_hotspot_click
for event hotspot_click of cl_gui_alv_grid
importing e_row_id e_column_id
es_row_no.
endclass.
4. In the implementation
class lcl_event_receiver_grid implementation.
method handle_hotspot_click.
call method cl_gui_control=>set_focus
exporting
control = grid1.
v_dclick = c_y.
move es_row_no to wa_hotspot_rows.
append wa_hotspot_rows to i_hotspot_rows.
v_row = wa_hotspot_rows-row_id.
endmethod. "handle_hotspot_click
endclass. "lcl_event_receiver
a®
12-04-2007 6:24 PM