I have a view with the first column categorized. That column displays data from a field which contains a role.
In my viewPanel I want to use the categoryFilter to only let those members of that particular role see those documents. I have tried using context.getUser().getRoles(), but even if I only have 1 role for the user, no documents display. If I populate a field on the top of the xPage with this code, the value displayed is appropriate role with square brackets (as it does in the view).
If I hard code that same role name with the brackets, the documents are displayed in the view.
So how can I tell the categoryFilter, that if any of the user’s roles are displayed in that category, to display those documents?
Thanks so very much for any suggestions!