on 04-21-2014 1:09 PM
hi
Could you please help how to hide the select-option fields in webdynpro
there are four radio buttons
for every radiobutton there is corresponding the select_option filed is associated to it
user as only provision select one radio button and reset of the select-option fileds should be hidden
which ever the radio button is selected corresponding the select-options fileld should be displayed
please find the attachement below
Hi Nine Maddy,
We dont have option of visible and invisible for select options.
only the option is: setting visible option to the Viewcontainer UI element.
If we use REMOVE_SELECTION_SCREEN_ITEM( ), you have to create select option once again and the data will be last which is set ealier.
Thanks & Regards,
Sankar Gelivi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maddy,
i am also looking for this same solution, i need to hide/unhide select options depending on condition.
i have used the IF_WD_SELECT_OPTIONS->REMOVE_SELECTION_SCREEN_ITEM . and create selection item depending on condition.
So from the UI perspective, it works fine.. the choosen select options are available as expected.
But since we are removing the selec option item, when we come back to the same layout.. the select option is always initialized. i need the values to be retained what was entered previously.
Let me know if you come across a proper solution for hiding selec options.. rather than deleting and creating it everytime.
Thanks & Regards,
tashi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nine,
To hide select options you should use interface method REMOVE_SELECTION_SCREEN_ITEM of IF_WD_SELECT_OPTIONS.
Sample code :
Write the below code in the Event handler of Radio Button.
DATA lv_r_helper_class TYPE REF TO if_wd_select_options.
lv_r_helper_class = lo_interfacecontroller->init_selection_screen(
).
lv_r_helper_Class->REMOVE_SELECTION_SCREEN_ITEM(exporting i_id = 'Select_option1_id1').
This will hide first select option of your screen.Similarly pass select_option_id2 to hide it and so on.
Regards,
Ravikiran.k
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.