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

Grid using oops

Former Member
0 Likes
746

Hi All,

'Deselect All' button is on application toolbar.

In the ALV grid when i press 'Deselect All' Button all the checkbox should deselect.

I writen the code like this.

LOOP AT t_final INTO g_wa_final.

g_wa_final-chkbx = ''.

MODIFY t_final FROM g_wa_final .

ENDLOOP.

CALL METHOD alv_list->refresh_table_display.

grid is not refreshing. But i press refresh button on grid then it is deselecting all.

Regards,

vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
657

Hi,

try this:

WHEN 'DALL'. <- deselect-button

*

CALL METHOD GR_ALVGRID->SET_SELECTED_ROWS.

*

CALL METHOD CL_GUI_CFW=>FLUSH.

Regards, Dieter

4 REPLIES 4
Read only

Former Member
0 Likes
657

if any one is having idea please let me know.

regards,

vijay

Read only

Former Member
0 Likes
658

Hi,

try this:

WHEN 'DALL'. <- deselect-button

*

CALL METHOD GR_ALVGRID->SET_SELECTED_ROWS.

*

CALL METHOD CL_GUI_CFW=>FLUSH.

Regards, Dieter

Read only

Former Member
0 Likes
657

Add this code after refresh....


cl_gui_cfw=>flush( ).

Read only

0 Likes
657

Thanks a lot it is working fine but when i press 'selected all' thereafter i pressed 'Deselect all' it is not working.

But i checked checkbox and deselect it is working fine.

regards,

vijay