on 02-19-2009 9:56 AM
Hi experts,
I am using Select-options.it is working fine....but some buttons(cancel,check,reset and copy ) coming automatically.
Client dont require these buttons.
Can you tell me how to supress them?
thanks in advance,
Subhasis
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Subhasis
Declare MR_SELOPT as attribute of type ref to IF_WD_SELECT_OPTION, in your view attribute
and write method to initialize rge selection screen.
method initialize_seloption .
data:l_ref_cmp_usage type ref to if_wd_component_usage,
l_ref_interfacecontroller type ref to iwci_wdr_select_options,
*--- Instantiate select options component
l_ref_cmp_usage = wd_this->wd_cpuse_select_screen( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
*--- Initialize Selection Screen
l_ref_interfacecontroller = wd_this->wd_cpifc_select_screen( ).
wd_this->mr_selopt = l_ref_interfacecontroller->init_selection_screen( ).
*--- Configure Layout Options
wd_this->mr_selopt->set_global_options( i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_true
i_display_btn_execute = abap_false ).
endmethod
Greetings
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Please take a look at the wiki: [Web Dynpro ABAP - Complex select-options component usages|https://wiki.sdn.sap.com/wiki/x/ZQJXAg].
Basically what you need to do is in the method BUILD_SELECT_OPTIONS in the lines:
* Sets the helper reference
wd_this->m_sel_opt = wd_this->wd_cpifc_cmp_sel_opt( ).
wd_this->m_helper = wd_this->m_sel_opt->init_selection_screen( ).
* Hide the standard select-options components.
wd_this->m_helper->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false ).
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the following code in the WDDOINIT method after using add_selection_field method
data:
display_btn_cancel type abap_bool,
display_btn_check type abap_bool,
display_btn_reset type abap_bool,
display_btn_execute type abap_bool.
wd_this->G_HANDLER->set_global_options( "G_HANDLER is the attribute of IF_WD_SELECT_OPTIONS
i_display_btn_cancel = display_btn_cancel
i_display_btn_check = display_btn_check
i_display_btn_reset = display_btn_reset
i_display_btn_execute = display_btn_execute ).
.
Regards
Arjun
Edited by: Arjun on Feb 19, 2009 4:33 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi subhasis
Please refer to this standard component: DEMO_SELOPT_HIDE_BUTTONS. It shows the same functionality.
I hope it helps.
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.