0

我在 xpages 中使用标准视图控件,它有一个复选框,用于选择随后可以处理的多个文档。我想为视图中的每个文档添加一个单选按钮(是/否)选择。实现这一目标的最佳和最简单的选择是什么?

已编辑:我正在寻找的是内联编辑,我猜想在 xpages 视图中使用单选按钮编辑视图中每个文档的值。

顺便说一句,它不必是标准视图控件,我可以将其更改为数据表或重复控件,如果这有助于我实现这一目标。

4

1 回答 1

1

Could you simply use the Checkbox property in the view column? checkbox property on a view column

Then you could also make use of the SSJS with something like this:

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
}
于 2012-05-16T14:22:04.913 回答