Can you post your FormAPI code.
var arr = new Array();arr = item.getValue();for(int i=0; i<arr.length; i++){alert(arr);}
if i change to a item with static options, it is indeed return a array e.t 2,3,4But for dynamic, it return nothing. here is my api code.
When you open an existing DCR, does it contain all the values or only the selected ones in the dynamically populated multiselect box?
it sounds like you have selected value, then the rest of the data is stored somewhere else (DB). you might want to use callServer(). when opening a DCR, get the selected value, send it to some script in the backup to repopulate the list.
it contain selected ones not all the values.when open the dcr it will retrieve all the options from the DB and make the selected ones selected.But now, the problem is can not get the selected ones. (if single was selected, it works)
var arr = new Array();arr = IWItem.getOptions ();for(int i=0; i<arr.length; i++){ alert("Value "+i+"="+IWItem.getOptions ().value);}
IWItem.getOptions ()[item.getValue()[0]].value);