I am working an a task manager web application with xpages.I have a viewpanel that showing assigned tasks of all the employees.The administrator of the application can see all assigned tasks.
However each user of the application (employee) must only see the tasks which are attributed to him .I would like to know how to make visible to the logged in user only the tasks which are attributed to him.Is there another solution different from filtering the view by category(employee category)?
Because this solution will require me to create two viewpanels, one for the administrator and the other one categorized for employees.
In your view panel, there is a "Filter by Category Name", where you can just show the items for the current user. You can obtain the username in SSJS by the Global "session' object. Before using this, you will need to create a categorized view which you might already have.
You could make it so that an administrator sees all categories, or carry on with a different view panel only visible to administrators.