cancel
Showing results for 
Search instead for 
Did you mean: 

Please tell me how to clear values selected on select options in webdynpro

Former Member
0 Kudos

Hi all,

I have created a webdynpro component with individual radio buttons, wrote select options code in wddoinit and under one action method of one of the the radio buttons say radio2 I wrote code to visible select options. When ever I click that particular radio button select options is visible,selected some values that's fine.And my question is when I ever I clicked on radio button other than radio2 and then coming back to the radio2 , Values which are selected previously on the select options are not clearing....

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Please solve my issue.

Thanks,

Anusha.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member222068
Active Participant
0 Kudos

Hi Anusha,

To reset single field data : RESET_SELECTION_FIELD( ) method to be used

To reset multiple fields data : RESET_ALL_SELECTION_FIELDS( ) method to be used

Thanks & Regards,

Sankar Gelivi.

former_member184578
Active Contributor
0 Kudos

Hi,

use RESET_SELECTION_FIELD method to reset the previous values.

Sample,

wd_this->M_HANDLER->RESET_SELECTION_FIELD(  I_ID   ='<FIELD_ID>' ). " m_handler is the reference of select options

To reset all fields, you can simply use,

wd_this->M_HANDLER->RESET_ALL_SELECTION_FIELDS( ).

Regards,

Kiran