on 08-02-2011 3:21 PM
Hi all,
I have select options and one refresh button.
In output screen i will enter values in select-options (selection-screen) and i want delete all those entered data by clicking on refresh button, so that i can enter new values..
can anyone suggest this?
Thanks all
Hello Vani,
call the RESET_ALL_SELECTION_FIELDS method of the IF_WD_SELECT_OPITIONS. this will reset all the selection fields.
data lo_interfacecontroller type ref to iwci_wdr_select_options .
data lo_handler type ref to if_wd_select_options.
lo_interfacecontroller = wd_this->wd_cpifc_select_options( ).
lo_handler = lo_interfacecontroller->init_selection_screen( ).
lo_handler->RESET_ALL_SELECTION_FIELDS( ).
alernative:
you can enable the Reset the button of the WDR_SELECT_OPTION
data lo_interfacecontroller type ref to iwci_wdr_select_options .
data lo_handler type ref to if_wd_select_options.
lo_interfacecontroller = wd_this->wd_cpifc_select_options( ).
lo_handler = lo_interfacecontroller->init_selection_screen( ).
lo_handler->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 ).
BR, Saravanan
Edited by: Saraa_n on Aug 3, 2011 7:13 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just write some code to clear the contents of the context your select-options are bound to; call this code from the action triggered when clicking the button...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.