Rules for PR12

 5 Replies
 0 Subscribed to this topic
 68 Subscribed to this forum
Sort:
Author
Messages
bman
Basic Member Send Private Message
Posts: 9
Basic Member
We are trying to write a rule to secure PR12 to their own employee number for ESS.  This form is set up different than the other forms since the employee number is not part of the header. Would anyone be willing to share the syntax of the rule they are using?
Bob Canham
Veteran Member Send Private Message
Posts: 217
Veteran Member
We found the Employee id in the header: [code] if(form.EAD_COMPANY == strToNum(user.getCompany()) &&form.EAD_EMPLOYEE == strToNum(user.getEmployeeId())) 'ALL_ACCESS,' else 'NO_ACCESS,' [/code]
bman
Basic Member Send Private Message
Posts: 9
Basic Member
My bad, it is HR12 which shows employee name and employee number.  Did you secure this screen also?
Bob Canham
Veteran Member Send Private Message
Posts: 217
Veteran Member
No, that one doesn't have any ESS implications. We also don't use that normally for HR users so we haven't tried that before.
bman
Basic Member Send Private Message
Posts: 9
Basic Member
Do you even include HR12 in your ESS security classes?
Bob Canham
Veteran Member Send Private Message
Posts: 217
Veteran Member
No, we don't have that included in ESS security.