on 07-01-2013 12:21 PM
Hi everyone!
I would like to know how to hide the toolbar of a ALV. The one is shown at the top of the ALV with the standar buttons. I don't want to hide the buttons, I want to hide the toolbar itself.
Thanks a lot.
Hi,
I made it!!...Just after writing this post I found the solution. This is what I did.
Data: lo_value type ref to cl_salv_wd_config_table.
if lo_value is not initial.
CALL METHOD lo_value->IF_SALV_WD_FUNCTION_SETTINGS~SET_VISIBLE
EXPORTING
VALUE = CL_WD_TOOLBAR=>E_VISIBLE-NONE. "Hide toolbar
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah that's a cool way of doing it. I was trying to do it by hiding everything in the ALV's toolbar which eventually was resulting in a similar state. But its good to learn of a proper & efficient way
l_value = l_ref_interfacecontroller->get_model( ).
* set visible row count
l_value->if_salv_wd_table_settings~set_visible_row_count( '5' ).
l_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_export_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_edit_append_row_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_edit_check_available( abap_false ).
l_value->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_filter_complex_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_filter_filterline_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_dialog_settings_allowed( abap_false ).
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.