cancel
Showing results for 
Search instead for 
Did you mean: 

Radio Button in Webdynpro

Former Member
0 Kudos

How do we handle radio button in Webdynpro?

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Supriya,

I can't get you what do you mean by handling radiobutton.

But these are the 3 preperties maily used in case of radiobutton.

KeyToSelect: Unique key which which this radio button will be identified while selection from a number of radiobutton.s

SelectedKey: This property is set to the key of the radiobutton that is currently selected.

OnSelect: An event that you want to fire when the radio button is selected.

Assume you have 2 radio button RB1 and RB2

<b>Properties of RB1</b>

KeyToSelect: Key_1

SelectedKey: context attribute (Ctx_SelectedKey) type String

OnSelect: Action1

<b>Properties of RB2</b>

KeyToSelect: Key_2

SelectedKey: context attribute (Ctx_SelectedKey) type String

OnSelect: Action2

Note: selectedKey is binded to the same context as you want to consider them as a single group.

If you want to set that RB1 should be selected by default when the application is executed.

you can write this in wdDoInit()

wdContext.currentContextElement().setCtx_SelectedKey("Key_1");

Hope this was the thing you were looking for.

Regards,

Murtuza

Former Member
0 Kudos

Good explanation. Maybe we don't need two different actions, one action should suffice as you can easily determine by the context attribute which radio button has been selected.

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos