cancel
Showing results for 
Search instead for 
Did you mean: 

How can i refresh / Update View

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Bind the InputField Value Property and RadioButton Text property to the same value Attribute.

Regards,Anilkumar

Former Member
0 Kudos

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..

Former Member
0 Kudos

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