I have got a dynamic pick list for my form. When the user picks a particular component, the pick list should dynamically retrieve all the relevant sizes (which are number types) for that selection. Unfortunately it doesn't seem to work properly, displaying duplicates in the pick list. Why doesn't it work?
clear size;
size_list = List();
for each recs in inventory_administration [component == input.component]
{
if (!size_list.contains(recs.size))
{
size_list.add(recs.size);
size:ui.add(recs.size);
}
}