title: get the unid of selected documents and save to scoped variable
body: <p>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 :</p>
  
  <p><code>var viewPanel=getComponent("viewPanel1"); 
      var docIDArray=viewPanel.getSelectedIds();
      for(i=0;i &lt; docIDArray.length;i++){
      var docId=docIDArray[i];
      sessionScope.put("test",+docId);
      }</code>    </p>