I am working on modifying a Lotus Notes Leave Accounting system. Here's a little info:
1. A person requests leave - a document is created and a lookup is performed against the names.nsf to get the person's department and supervisor.
2. Depending on the type of leave requested, there may be multiple levels of approval (ie - Annual Leave only needs immediate supervisor approval, while Leave w/o Pay or Administrative Leave needs the approval of the Court Administrator).
3. Once the person submits the request, the document is emailed to the supervisor.
4. If the supervisor approves the leave and it needs no further approval, a record is written to our AS400; if there are more approval levels, the "Next Approver" field in the document is updated with the supervisor's Supervisor and is emailed for second level approval and up until all levels have been approved.
All works great! Except.....
(you knew there had to be an except!!)
Our Deputy Court Administrators are responsible for multiple divisions. For all the others in the court, the following works well for determining what information to show:
However, one deputy oversees:
Compliance
Customer Service
Educational Services
But, her "Department" is Administration, so when the views are opened, all she sees are ones where the Department = "Administration".
What I need to have happen is when one of the Deputy Administrators selects the Pending Requests, they get all the pending requests from all their divisions that are waiting on their approval.
So, what I was considering (and need to get input on) is this:
can I create a new document with two fields, Deputy Name and Division, then using the Division name in this document collect all the documents where the request is pending and the next approver is the administrator and show all these documents in a view? I know I can put them in a collection and copy to a folder, but all I want to do is display them in a view.
Leslie
1. A person requests leave - a document is created and a lookup is performed against the names.nsf to get the person's department and supervisor.
2. Depending on the type of leave requested, there may be multiple levels of approval (ie - Annual Leave only needs immediate supervisor approval, while Leave w/o Pay or Administrative Leave needs the approval of the Court Administrator).
3. Once the person submits the request, the document is emailed to the supervisor.
4. If the supervisor approves the leave and it needs no further approval, a record is written to our AS400; if there are more approval levels, the "Next Approver" field in the document is updated with the supervisor's Supervisor and is emailed for second level approval and up until all levels have been approved.
All works great! Except.....
(you knew there had to be an except!!)
Our Deputy Court Administrators are responsible for multiple divisions. For all the others in the court, the following works well for determining what information to show:
Code:
@Command([OpenView]; @Environment("Department") + " ApprovedLeave")
However, one deputy oversees:
Compliance
Customer Service
Educational Services
But, her "Department" is Administration, so when the views are opened, all she sees are ones where the Department = "Administration".
What I need to have happen is when one of the Deputy Administrators selects the Pending Requests, they get all the pending requests from all their divisions that are waiting on their approval.
So, what I was considering (and need to get input on) is this:
can I create a new document with two fields, Deputy Name and Division, then using the Division name in this document collect all the documents where the request is pending and the next approver is the administrator and show all these documents in a view? I know I can put them in a collection and copy to a folder, but all I want to do is display them in a view.
Leslie