With the use of getSelectedids, We can get the notesid of all selected documents...
After getting the id collection, We can handle the document use of Database class...
Sample code:
var vpane=getComponent("viewPanel1");
var arr=vpane.getSelectedIds();
var db=session.getCurrentDatabase();
var name;
var des;
var i;
if(arr.length>0)
{
for(i=0;i<arr.length;i++)
{
if(arr[i]!="")
{
var docid=arr[i];
getComponent("count").setValue(docid.toString());
var doc:NotesDocument=db.getDocumentByID(docid.toString());
doc.putInFolder(“folderName”);
}
}
}
No comments:
Post a Comment