on 01-18-2010 7:14 AM
For webdynpro component SALV_WD_TABLE, how do we deactivate the toolbar for the alv list display?
Hi Sandeep,
U can use the set_enabled method of the interface if_salv_wd_table_settings.
l_value->if_salv_wd_table_settings~set_enabled( ' ' ).
l_value is the reference of the Get_model( ) method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try following code in the WDDOINIT method
DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
l_ref_interfacecontroller = wd_this->wd_cpifc_alv_table( ). " Value from the prop tab of the view
DATA: l_value TYPE REF TO cl_salv_wd_config_table.
l_value = l_ref_interfacecontroller->get_model( ).
DATA: lr_standard_functions TYPE REF TO if_salv_wd_std_functions.
lr_standard_functions ?= l_value.
lr_standard_functions->set_pdf_allowed( abap_false ).
lr_standard_functions->set_filter_complex_allowed( abap_false ). "* Disable Filter tab from Settings
lr_standard_functions->set_excel_inplace_allowed( abap_false ).
lr_standard_functions->set_export_allowed( abap_false ).
lr_standard_functions->set_dialog_settings_allowed( abap_false ).
lr_standard_functions->set_view_list_allowed( abap_false ).
lr_standard_functions->set_filter_filterline_allowed( abap_false ).
You will find all methods to remove standard toolbar in methods of interface if_salv_wd_std_functions. Double click on it to find the methods
Regards,
Saket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
* Data declarations for instantiation
DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table ,
l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
* Navigate from <CONTEXT> to <NODES> via lead selction
lr_node = wd_context->get_child_node( 'CN_FECLM' ).
* Instantiate the ALV
l_ref_cmp_usage = wd_this->wd_cpuse_usg_alv_feclm( ) .
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL .
l_ref_cmp_usage->create_component( ) .
ENDIF .
* Get model
l_ref_interfacecontroller = wd_this->wd_cpifc_usg_alv_feclm( ).
l_value = l_ref_interfacecontroller->get_model( ) .
wd_this->l_value_feclm = l_value .
* Remove the standard buttons available on ALV toolbar
l_value->if_salv_wd_std_functions~set_sort_headerclick_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_insert_row_allowed(
abap_false ).
l_value->if_salv_wd_std_functions~set_edit_delete_row_allowed(
abap_false ).
l_value->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_sort_headerclick_allowed(
abap_false ).
l_value->if_salv_wd_std_functions~set_edit_check_available(
abap_false ).
l_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ) .
l_value->if_salv_wd_std_functions~set_export_allowed( abap_false) .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.