cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed in Radio buttons (ABAP web dynpro)

Former Member
0 Kudos

Hi all,

I need to implement 2 stand alone Radio buttons (not groupbykey or groupbyindex). I could add the same in my view layout, but I am not sure how to use the KeyToSelect and SelectedKey options. How do I control when the button is selected/deselected and how do I obtain this information from my context?

Thanks in advance guys!

-Shalini.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alex..

Thanks so much for the reply. Your answer helped me set up the buttons, and the examples in WDR_TEST_EVENTS were also helpful.

Just one thing.. how do I specify which of the radio buttons are to be selected by default. Also, right now, both the radio buttons are selected. How do I turn this off?

- Shalini.

Former Member
0 Kudos

hi shalini......

if its a radio button group... it works out fine...

but for this you can take out the default value and check it....

---regards,

alex b justin

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Alex.. thanks, its worked!

Former Member
0 Kudos

hi shalini....

create two attributes of type string for the two rado buttons and give two different default values for that. say a and b...

bind the attribute to the property selected key...

give the default value as the key to select in the property....

or you can bind the same attribute to both the buttons and read the attribute to check which value has been selected...

you can also go through wdr_test_events component.

---regards,

alex b justin