I\'ve a viewPanel1 with checkboxes. By clicking on a button I would like to save the univ id\'s (comma seperated) of the selected items to a scoped variable. I tried this :
var viewPanel=getComponent("viewPanel1");
var docIDArray=viewPanel.getSelectedIds();
var unidArray = new Array();
for(i=0; i < docIDArray.length; i++) {
var unid=database.getDocumentByID(docIDArray[i]).getUniversalID();
unidArray.push(unid);
}
sessionScope.put("test", @Implode(unidArray, ","));
This will probably do it.