XPages:如何在视图控件的分类列中选择所有文档 [英] XPages: How do I select all documents in a categorized column of a view control

查看:80
本文介绍了XPages:如何在视图控件的分类列中选择所有文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个View控件,其中第一列被分类。我已经找到了如何在列标题上放置一个复选框,但这不是我要找的。我想要能够选择类别中的所有文档。如果我设置了分类列上的复选框属性,我得到一个复选框的每一行的列。我想要一个类别名称旁边的复选框。

解决方案

我放弃了,走了一个不同的方向。我现在显示存储位置的列表字段,每个条目都有复选框。我不会显示每个位置的文档的详细信息。用户可以选择他们想要的位置ID,并且操作按钮移动,并为每个选择的位置获取文档集合,并在幕后更新它们。



我仍然认为模式是一个有用的。 是我想做的一个示例(解释),虽然我没有想到不确定状态。在示例页面上,点击其中一个顶级条目,您将看到我要做什么。



感谢,Peter和Tim, / p>

I have a View control where the first column is categorized. I have found how to put a checkbox on the column header but that isn't what I'm looking for. I want to be able to select all documents in a category. If I set the Check Box property on the categorized column, I get a checkbox for that column on each row. I want one checkbox next to the category name.

解决方案

I gave up and went in a different direction. I now show a list field of the storage locations with checkboxes for each entry. I do not show the detail from the documents for each of the locations. The users can choose the location IDs they want and the action button goes and gets the collection of documents for each chosen location and updates them behind the scenes.

I still think the pattern is a useful one. This is an example of what I wanted to do (explanation), though I hadn't thought about the "indeterminate" state. On the example page, click one of the top-level entries and you'll see what I was going for.

Thanks, Peter and Tim, for weighing in.

这篇关于XPages:如何在视图控件的分类列中选择所有文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆