Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

handle_double_click

Former Member
0 Likes
489

Dear All,

I am using the method handle_double_click to navigate to a new ALV list when the user double clicks a certain row.

My issue is, when I double click one row, the details are output in a separate list, its fine. When I press the back button and double click a different row, the result displayed in the second list is always the previous one, its not changing with selection of a different row.

Please tell me how to get around this issue.

Regards,

Prosenjit.

2 REPLIES 2
Read only

anversha_s
Active Contributor
0 Likes
393

Hi,

Please check your code with below sample.

CLASS event_class DEFINITION.

*Handling double click
PUBLIC SECTION. METHODS:
handle_double_click
FOR EVENT double_click OF cl_gui_alv_grid IMPORTING e_row .

ENDCLASS. "lcl_event_receiver DEFINITION

CLASS event_class IMPLEMENTATION. 

METHOD handle_double_click.

DATA : ls_wa LIKE LINE OF it_tab.

*Reading the selected data into a variable
READ TABLE it_tab INDEX e_row-index INTO ls_wa.

*show your list

ENDMETHOD. "handle_double_click

ENDCLASS. "lcl_event_receiver IMPLEMENTATION

Regards,

Anversha

Edited by: Anversha s on Nov 18, 2008 11:03 AM

Read only

Former Member
0 Likes
393

The issue was, when we are displaying for the first time in the secondary ALV list, the instance of the class cl_gui_alv_grid is initial.

However when we go back and select a different row, the secondary ALV list's cl_gui_alv_grid instance is not initial anymore, so in the ELSE part we have to call second_instance->refresh_table_display.