1
votes

I have a Notes Categorized view of documents. Some of these documents have a Reader Field set. I'm building a 'view' of these documents in a series of nested Repeat Control. The first repeat is bound to a viewScope variable, called vsCat1 and I set vsCat1 in the AfterPageLoad event by opening the view and getColumnValue(0) which returns a list of the categorized data. The issue is that there is a category in the list that a particular user does not have Reader access to. So nothing displays in the repeat control where the document information is displayed, which is right. Now I could iterate through all the documents to determine if the person can in fact read it but that would add way more overhead than I want to add. I would settle for a display of something like "* Access Restricted *" or ?? In the repeat that displays the data I tried checking to see if veData == null but it never gets there. The result is not fatal and if there is one or more unrestricted documents in the category the user would never know. But if all documents in the category are restricted the user sees the category but can not do anything and it looks strange. Plus depending on the category structure it might yield information that would reveal sensitive information. Say the category is "Purchase of Company XYZ" it could be pretty bad. This is a broader issue than XPages but how do others handle this sort of thing?

1

1 Answers

2
votes

Did you check 'Don't show empty categories' in the view property, on the Style tab ?

Have a look at this : https://www-304.ibm.com/support/entdocview.wss?uid=swg1LO58079