2009 Apr 02 9:32 PM
hi,
i have a question about dynpro program. I use a Grid Control and Customer Control to create a table in a dynpro. Now i want to get the data from a row in the table with double click. How to achieve it?
Thanks for your suggestion.
2009 Apr 02 9:37 PM
Hi,
You will have to handle the event double_click on the Grid. Check for examples in SLIS package.
regards,
Advait
hi,
i have a question about dynpro program. I use a Grid Control and Customer Control to create a table in a dynpro. Now i want to get the data from a row in the table with double click. How to achieve it?
Thanks for your suggestion.
2009 Apr 02 9:37 PM
Hi,
You will have to handle the event double_click on the Grid. Check for examples in SLIS package.
regards,
Advait
2009 Apr 02 9:39 PM
Hi,
thank you for your reply. Could you give me the details e.g. example codes?
2009 Apr 02 11:28 PM
Class definition:
* Class Event Handler Definition for screen 0002
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
METHODS: handle_double_click
FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING e_row e_column.
ENDCLASS. " CLASS LCL_EVENT_HANDLER DEF..
Create Type ref:
data: gv_event_handler TYPE REF TO lcl_event_handler, " Event handlerClass implementation:
CLASS lcl_event_handler IMPLEMENTATION.
METHOD handle_double_click.
CHECK e_row-rowtype(1) EQ space and e_column-FIELDNAME = 'CHMULT'
.
perform do_perform using e_row-index.
ENDMETHOD. " HANDLE_DOUBLE_CLICK
ENDCLASS. " CLASS LCL_EVENT_HANDLER IMPL...
Create Object:
*-For Double click functionality
CREATE OBJECT gv_event_handler.
SET HANDLER gv_event_handler->handle_double_click FOR gv_alv_grid1.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |