Categorized view with repeat controls on xpages

Could anyone give me an idea how to show documents categorized using repeat controls on XPages?

Of course it’s possible with the view control to show documents categorized. But I would like to add some additional data through the possibilities of the repeat control.

I would also like to implement subcategories.

I haven’t found any sample or hint and any solutions I’ve been thinking are basicly not really straight forward.

Thank You

Subject: I am working on something similar and don’t think it can be done, but, hoping I am wrong

A repeat control will just repeat for each view entry. Then you can use controls in the repeat to get what you want. There is an iscategory method to determine if that entry in the view is a category, if that helps…

The keys property of the data source can be used to filter the view but that does not work with catgeories once you get past the first column. Let’s say you in have the first column red and green. And in the second column you have that categorized. If you filter on red than you will only get the documents in the first category that shows up under red. It does not show ALL the docs that are in the red category. It works the same in LotusScript (getallentriesbykey).

So, other than using the search (which won’t keep the categories) I don’t know how to filter a view and preserve categories.

Howard