Skip to Content
0
Former Member
Jul 27, 2005 at 09:49 AM

Binding UI Elements to an Input Field Dynamically

24 Views

Hello,

I have a Node : Passenger

Name

Age

Sex

Choice

I am adding elements to this node dynamically.

So it looks like this at run time

Passenger 1

Shubham

27

M

...

Passenger 2

Mohana

26

F

...

I am creating a dynamic screen that will show the data in the above nodes and an inputfield to get the passenger food choice. So at run time my screen looks like

Name: Shubham

Age : 27

Sex : M

Choice : _______

Name: Mohana

Age : 26

Sex : F

Choice : _______

I want to bind the input fields above to each node instances. If the user fills in the data as

Veg in first input box and N/Veg in the second input box, my nodes should look like.

Passenger 1

Shubham

27

M

Veg

Passenger 2

Mohana

26

F

N/Veg

Please give your valuable inputs as to how to achieve this. A Code sample will be great.

Thanks and Regards,

Shubham