Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Correct way to dynamically set the form fields.

$
0
0
Hi,

I wonder what is the best/correct way to dynamically set the fields of a form? I normally do the following:

List<FormItem> items = new ArrayList<FormItem>();

items.add(formItem_1);
items.add(formItem_2);

myForm.setItems(items.toArray(new FormItem[0]));

Is there a better way to do the above?

Regards,

Viewing all articles
Browse latest Browse all 4756

Trending Articles