Skip to Content
0
Jul 20, 2009 at 03:00 PM

Dynamic UI generation

21 Views

Hi,

I have a requirement to do the following:

A context exists which is defined to contain multiple items (ItemsName). The UI has an Add button to allow a user to add an item using an InputField. Everytime the user clicks on Add, a new Input Field get generated. In other words, I will need InputField_ItemName1 binded to the first item, InputField_ItemName2 binded to the second item and so on. The screen will have multiple Input Fields that represents that number of Items the user wants to add.

How do I go about doing this? After creating the element and the Input Fields in my current program, all the Input Fields get updated to whatever the last value I entered on any on the Input Fields generated. If I change the third Input Field, refreshing the screen updates all existing Input Fields to the value I entered.

Please help.

Thanks,

Mark