Have you ever wondered how to achieve the three stage security (Form, Field, and Replication) that Lotus Notes is famous for?
Perform the actions below and you will have an application that an individual user will only SEE their own documents on the Server and will Replicate their own documents locally.
A Group defined with the Role [HR Skill Track] will now be able to SEE All the documents on the server, but will only Replicate their own Documents to a Local Replica.
Code
On each Form define a Readers Field with a formula like:
"[HR Skill Track]" : EmpName : HRRep
On each Form define a Authors Field with a formula like:
EmpName : HRRep
On each Form define a Section with all the fields that you want to hide and give it a Formula like
DocMode != "Notify" | !@Contains(EmpName; @Name([CN]; @UserName))
In the Replication Formula, set the formulas as follows:
When computer: SYDLN1001
Receives from: --Any Server--
SELECT @All
Settings
--------
X Forms, Views
X Access control list
X Agents
X Replication formula
=======================================================
When computer: --Any Server--
Receives from: SYDLN1001
SELECT @Name([CN]; @UserName) = EmpName |
Form = "Employee Name" |
Form = "Configuration" |
Form = "Memo" |
(Form = "Taxi Flexible Trip Allowance Claim" & HRRep = @Name([CN]; @UserName)) |
(Form = "Taxi Incidental Travel Allowance Claim" & HRRep = @Name([CN]; @UserName)) |
(Form = "Taxi Travel Allowance Claim" & HRRep = @Name([CN]; @UserName)) |
(Form = "Taxi Work Assignment Change" & HRRep = @Name([CN]; @UserName)) |
(Form = "Taxi Work Assignment Notification" & HRRep = @Name([CN]; @UserName))
Settings
--------
X Forms, Views
X Access control list
X Agents
X Replication formula