on 07-28-2010 9:58 AM
Hi,
Does anyone know how to have the filter line already displaying on initialization of an ALV grid? I would like to have the filter line on when I open the ALV rather than have the user having to press the filter option on the tollbar.
Thanks for any suggestions.
Tara
data lo_settings type ref to cl_salv_wd_function_std.
lo_settings = lr_model->if_salv_wd_function_settings~get_function_std( if_salv_wd_c_std_functions=>filter_delete ).
lo_settings->set_visible( ).
lo_settings = lr_model->if_salv_wd_function_settings~get_function_std( if_salv_wd_c_std_functions=>filter ).
lo_settings->set_visible( cl_wd_uielement=>e_visible-none ).
call method lr_model->if_salv_wd_std_functions~set_filter_complex_allowed
exporting
value = abap_true.
call method lr_model->if_salv_wd_std_functions~set_filter_filterline_allowed
exporting
value = abap_true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhimanyu,
Thanks a lot. Ur code worked very well. Now my next issue is , user filters data based on some conditions ok. so after that if he wants to delete all those stuff from filter line using any button, suppose.
how to make that one possible.
can u provide me that code?
Thanks & Regards,
Akshay.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.