on 09-08-2007 12:46 PM
How do we handle radio button in Webdynpro?
Please help.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.