Question : Embedded View by Roles

First of all the Title is not exactly what I want to ask.
Second this question is based on my previous question: http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/Lotus_SmartSuite/Lotus_Notes/Q_26326936.html
I uploaded the screenshot of the final product from my previous question. Basically the screen that a user sees is an embedded view with Show single category based on User Name.

Now the managers want two new things in this tracking system:
1. The managers want to see all the ticket issued by their department not just the ticket they issued.
2. The managers want to get an email notification each time a person on their department created a ticket

The first request is the very first thing that I want to do. The second request seems a lot harder to me. I am not sure what is the best way to do the first one. I'm thinking to create a view for each department but it doesn't seem right or I feel that there is a better solution than that.

Thanks in advance
Attachments:
 
screenshot
screenshot
 

Answer : Embedded View by Roles

The select single catagory can only be a single name in this case so you have to make sure you are only giving it a single name.

In your statement after getting the manager role you are passing back a text list of two strings
"UserTest1":"UserTest2"
This needs to be one or the other not both.

I think you are still missing an important change as you are trying to use a view that list the person who created the document.

My original suggestion based upon what you asked was to create a field that lists all the users who are able to read the Document.

For example a person Joe Blogs creates a new request. He is a member of sales department
The Form that is saved has a field called allowedreaders which is computed when composed.
The value of it would be
@Name([CN];@UserName):@dblookup("";"servername":"names.nsf";"($Groups)";Department;"Members")
You will have to have on the form a field called department that is selected by user or is a lookup of some description otherwies there is no way for system to know what department doc is refering to.

If the user bob smith was in the group Sales then the field allowedreaders would contain two strings
"Joe Blogs" : "Bob Smith"

In your view make first catagorised column show the contents of field AllowedReaders and make sure you set the value, show multiple values as seperate enteries.
Now the document created above would show twice in the view, once under Joe Blogs and Once under Bob Smith.

Your embedded view single catagory view code would just need to use
@Name([CN];@UserName)
And each of the users listed in AllowedReaders would only see the document once.

Random Solutions  
 
programming4us programming4us