cancel
Showing results for 
Search instead for 
Did you mean: 

We don't want default selection of any radio button!

former_member194142
Participant
0 Kudos

Hello,

I placed a RadioButtonGroupByIndex (RB Group by INDEX) UI element on my_view and as I populated with 4 entries, hence am seeing the 4 radio buttons on my_view, also wrote a underlying action w/ name of my_rb_selection_action well, but by default standard SAP is selecting the 1st radio button, but in our case, we don't want to have any default selection of any radio button, we need to force the user to select one of the radio button among 4, so that there is a guarantee of triggering of my underlying my_rb_selection_action

Pls. let us know how we can achive of our requiremnt of no dafult selection of any radio button, all should be open

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

To avoid default selected radio button, In the context Node, under properties, change the Initialize Lead Selection property to No as shown below: 

OR,

( if not), in the WDDOINIT method, use, set_lead_selection_index( ) method and set index to -1.

lo_nd_radio->set_lead_selection_index( -1 ). " Remove selection

Hope this helps u,

Regards,

Kiran

former_member194142
Participant
0 Kudos

Thank you

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

hi,

Looks like, this is a duplicate, Original answered here: http://scn.sap.com/message/14963736#14963736

Regards,

Kiran