on 06-09-2014 5:34 PM
Hi friends,
In the past some folks guided me to hide and change standard buttons; now I'm stuck with a toolbar which does not respond to my code when I want to hide it
Im enhancing webdybpro HRECM00_PLANNING_UI method WDDOMODIFYVIEW of view v_planning:
lr_lbl ?= view->get_element( ID = 'ADJUST_COMPENSATION' ).
IF lr_lbl IS NOT INITIAL.
lr_lbl->set_visible( 01 ).
endif.
lr_lbl ?= view->get_element( ID = 'SALV_WD_PDF' ).
IF lr_lbl IS NOT INITIAL.
lr_lbl->set_visible( 01 ).
endif.
but when debug it it seems that the method get_element is not getting anything. This is the detail of the webdynpro and toolbar buttons I want to hide (not all of them):
Any help will be greatly appreciated!!
Hi,
Those buttons are not part of the view but ALV's. So you have to hide the ALV toolbar buttons using if_salv_wd_std_functions.
write the below code:
data lr_interfacecontroller type ref to iwci_salv_wd_table .
data lr_value type ref to cl_salv_wd_config_table.
lr_interfacecontroller = wd_this->wd_cpifc_alv_comp( ).
lr_value = lr_interfacecontroller->get_model( ).
lr_value->if_salv_wd_std_functions~set_pdf_allowed( value = abap_false ).
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Federico,
If you want to hide standard ALV toolbar buttons,following is the code.
*---->ALV Config table reference
lv_value = lo_interfacecontroller->get_model( ).
*----->ALV print,export buttons disabled
lv_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
lv_value->if_salv_wd_std_functions~set_export_allowed( abap_false ).
*----->Alv personalization viewlist disabled
lv_value->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.