Create Dynamic Drop Down List from joining 2 field from a row

Create Dynamic Drop Down List from joining 2 field from a row

Hi, i would like to know how can I create a list to be used as a dropdown list?

for a single field, I can do the following:

getList = Form[ID != 0].ID.getAll().toList();
input.dropdown:ui.add(getList);

I tried the following method but it doesn't work:

getList = Form[ID != 0].ID.getAll();
for each rec in getList
{
 loadInfo = Form[ ID = getList];
myList = loadInfo.Field1 + loadInfo.Field2;
}
input.dropdown:ui.add(myList);

what if I would like to have a list which combined two columns from the row, how can I achieve this?

Thanks in advanced!