Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Infor / Lawson Platforms
S3 Security
Restricting employee from seeing one dept
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Brady
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5274
People Online:
Visitors:
373
Members:
0
Total:
373
Online Now:
New Topics
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Infor / Lawson Platforms
S3 Security
Restricting employee from seeing one dept
Please
login
to post a reply.
3 Replies
0
Subscribed to this topic
16 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
psherry
Basic Member
Posts: 6
1/25/2008 3:13 PM
The payroll manager wants her payroll clerks to see all employees except for employees with their departments. On example is I built a security class for Pay Modeling, so they have access to PR89.1. I wrote a conditional rule on the table Employee stating if table.department == 4710 no access else all access and that works on the selects but they can still enter the employee in the emp-employee field on the form. I been trying to write a conditional rule on the form to restrict employees in 4710 but can't get anything to work. I thought I could use the getDBfield but I can still enter an employee from dept 4710 in the emp-employee field. Any recommendations on how I could get this restricted on the form? Thanks, Paul
John Henley
Posts: 3351
1/28/2008 8:01 PM
Split
Rules written against tables only apply to drill-arounds and selects. So, when you write "I wrote a conditional rule on the table Employee", that is why it's working on the drop-down list. What you would next need to do is write a rule against PR89.1 itself, which compares the user's Department (using getDBField) against the Department (again using getDBField) for form.EMP_COMPANY / form.EMP_EMPLOYEE. Something like this: if(getDBField('EMPLOYEE','DEPARTMENT',form.EMP_COMPANY,form.EMP_EMPLOYEE)== getDBField('EMPLOYEE','DEPARTMENT',user.getCompany(),user.getEmployeeId())) 'NO_ACCESS,' else 'ALL_ACCESS,'
Deleted User
New Member
Posts: 0
1/28/2008 9:57 PM
Split
We use a 'PLDeptPayGrade' element: strToNum(DEPARTMENT)!=9320&&strToNum(DEPARTMENT)!=9422&&strToNum(DEPARTMENT)!=9430&&strToNum(DEPARTMENT)!=9438&&strToNum(DEPARTMENT)!=9442&&strToNum(DEPARTMENT)!=9443&&strToNum(DEPARTMENT)!=9444&&strToNum(DEPARTMENT)!=9445&&strToNum(DEPARTMENT)!=9446&&strToNum(PAY_GRADE)<90 This element is then attached to the HR Table Security Classes. We keep our Table security classes seperate from those Functional. We do not have MSS up yet, but are hoping MSS Security Class will allow us to have HR Managers override this to see their own employees.
psherry
Basic Member
Posts: 6
1/31/2008 8:20 PM
Split
Thanks for the replies, John yours worked perfect!!!
Please
login
to post a reply.