must have firstChoice
(
displayname = "First Choice"
type = picklist
values = weekends[activeWeekend].label
)
//save temporary the actual picklist value
tempFirstChoice = input.xfirstChoice.toString();
tempSecondChoice = input.secondChoice.toString();
for each r in weekends [activeWeekend]
{
xfirstChoice:ui.add(r.label);
secondChoice:ui.add(r.label);
}
//write back the temporary saved picklist value
input.xfirstChoice = tempFirstChoice;
input.secondChoice = tempSecondChoice;