on 2007 Mar 01 7:58 AM
Hi
I want to create a view with two radio buttons and one text filed
when i select radio button i should display related value of radio button in the text field in the same view.
let me know the steps how to achive this.
regards
mmukesh
Bind the InputField Value Property and RadioButton Text property to the same value Attribute.
Regards,Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Suppose you have n RadioButton UI elements RD0,RD1 .... RDn.
You have a TextView UI element TV.
You have a context attribute "RadioValue" of type string directly under root node.
Bind "selectedKey" property of all the radio buttons to this context attribute "RadioValue".
Bind "text" property of TextView TV to context attribute "RadioValue".
Create an action "SelectRadio" and bind "onSelect" property of all the radio buttons UI element to this action .
In the "KeyToSelect" property of all the radio, indicate the text to be displayed on selection of that radio.
Done.
Regards
kk..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mukesh,
If you have Radio Button and you have bounded your Text View to a context attribute, then you can write the required code in <b>onSelect</b> event of radio button.
onAction...(...){
String RBValue= wdContext.currentContextElement().get<RBValue>();
wdContext.current<ContextElement>().set<attribute>(RBValue);
}
Hope this helps you.
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.