Hi,
Try this code,
var itemList = [];
for (var i = 0; i < dropdownlist1.length; i++)
{
itemList.push(dropdownlist1.getDisplayItem(i));
}
dropdownlist2.setItems(itemList.join(","));
If you have "Specify Item Values" set on the binding tab of the drop down list object palette then you will need to copy the item value across as well, so
var itemList = [];
for (var i = 0; i < DropDownList1.length; i++)
{
itemList.push(DropDownList1.getDisplayItem(i));
itemList.push(DropDownList1.getSaveItem(i));
}
DropDownList2.setItems(itemList.join(","),2);
That is add the getSaveItem line (the fourth one) and a ",2" to the setItems call on the last line.
Regards
Bruce