Return from first column of a categorized view when using readers fields

微笑、不失礼 提交于 2019-12-13 00:47:34

问题


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:


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



来源:https://stackoverflow.com/questions/25464185/return-from-first-column-of-a-categorized-view-when-using-readers-fields

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