on 10-04-2007 11:45 AM
Hi all,
Can anyone explain me about wats the difference between key to select and selected key in the radio buttons. and which should be binded to what in these to properties?
Thanks & Regards,
Suresh
HI,
KeyToSelect: Determines the key used to select this radio button.
Selected Key :Determines the context attribute from where this radio button gets its data.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sureshkumar,
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
Properties of RB1
KeyToSelect: Key_1
SelectedKey: context attribute (Ctx_SelectedKey) type String
OnSelect: Action1
Properties of RB2
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");
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To explain further.....
lets say u have 3 radio buttons
Radio Button keytoSelect SelectedKey
r1 k1 ctx
r2 k2 ctx
r3 k3 ctx
where ctx is a context attribute common to one group of radio buttons.
and k1, k2, k3 are the keys.
now on the action 'onSelect' ,
if u select r1 the ctx will contain k1,
id u select r2 then ctx will contain k2 and so on.
hence with the helpp of ctx u can get to know which radio button has been selected, so u can write the code to execute on the selection,
Best Regards
Deepak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.