cancel
Showing results for 
Search instead for 
Did you mean: 

How to deselect Radio button?

Former Member
0 Kudos

Hi All,

I am using 2 Radio button grops by indexes, I want to set Radio button to unselect by default.

How to acieve this.. I trid by setting index using SET_LEAD_SELECTION_INDEX and with  CLEAR_SELECTION.

Both are not working. can anybody help on this.

Thanks,

venkat.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member210804
Active Participant
0 Kudos

Hi venkat ,

Please follow the below screenshots .

1. Create 2 node RB1 and RB2  with attributes text1, text2 and supply functions ZRB1 ,ZRB2 respectively having cardinality 0..n . Remove the selection for 'Initialization Lead Selection'. property.

2. Create 2 RadiobuttonGroupByIndex and bind texts properties to the two node RB1 and RB2 attributes.

3. Run the application.

Best regards,

Rao

former_member197425
Active Participant
0 Kudos

Hi,

If initially the Radio button group need to be made blank, then it can be achieved by De-selecting the flag of "Initialization Lead Selection " property of the Node to which Radio button group is binded and also make sure the Cardinality of such node be 0:N.

Then radio buttons will be blank by default.

Thanks,

Nandi.

Former Member
0 Kudos

your solution by set the flag of "Initialization Lead Selection" property works for me.

Thanks.

Former Member
0 Kudos

you can directly pass abap_true or abap_false to attribute which is bind with radiobutton in ON_SELECT event