2007 Jan 25 11:10 AM
Hi
I have one double click event defination and event implementation. But two event handler one for top alv and one for bottom alv on a single report. Now from the event implementation I want to know which (top or bottom alv) alv is double clicked(top or bottom).
Hi
I have one double click event defination and event implementation. But two event handler one for top alv and one for bottom alv on a single report. Now from the event implementation I want to know which (top or bottom alv) alv is double clicked(top or bottom).
2007 Jan 25 11:17 AM
Well what about going to the implementation part of your "bottom"-dblclck event, and implementing some flag, which will tell you later on that the bottom-dblclck event has been raised.
2007 Jan 25 2:11 PM
Hi ,
You can have an attribute(GRIDNAME) in the definition of event receiver class.
Have 2 object of the same class.In the constructor of the event receiver assign the GRIDNAME in the constructor.
events_grid1 TYPE REF TO lcl_application,
events_grid2 TYPE REF TO lcl_application,
CLASS lcl_application DEFINITION.
PUBLIC SECTION.
*Attributes
DATA : myname TYPE char10.
*Methods
METHODS:
constructor IMPORTING myname_p TYPE char10,
................
ENDCLASS. "lcl_application DEFINITION
CLASS lcl_application IMPLEMENTATION.
CONSTRUCTOR
METHOD constructor.
myname = myname_p.
ENDMETHOD. "constructor
*HANDLE_DOUBLE_CLICK
METHOD handle_node_double_click.
IF me->myname EQ 'GRID1'.
....
elseif me->myname EQ 'GRID2'.
,,..
endif.
ENDCLASS. "lcl_application IMPLEMENTATION
SET HANDLER events_GRID1->handle_node_double_click FOR GRID1.
............
SET HANDLER events_GRID2->handle_node_double_click FOR GRID2.
..........
Hope this helps.
Regards
Immanuel D
2007 Jan 25 2:29 PM
2007 Jan 25 2:50 PM
Hi,
'me' represents object that uses it....
It is a self pointer
Regards
Immanuel D
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |