How do I delete selected documents in a XPage Dynamic View Panel

人走茶凉 提交于 2019-12-06 11:16:31

Did you see and try this? http://www-10.lotus.com/ldd/ddwiki.nsf/dx/2008-11-11033022WEBBZ4.htm

var viewPanel=getComponent("viewPanel1");get the componet of viewPanel
var docIDArray=viewPanel.getSelectedIds(); get the array of document ids
for(i=0;
i < docIDArray.length;
i++){
    var docId=docIDArray[i];
    var doc=database.getDocumentByID(docId);
    .. your code to deal with the selected document
}

(I think the code above only handle view panels in the current database though)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!