Security in Fields

bbcai
Member Posts: 80
Is it possible to set security for fields? Means people can only see certain fields data only. :?:
0
Comments
-
Talkin' about the standard navision, the only way you to do this is to have some coding on the table where you want to limit acces of some certain users to a specific field. you can use USERID to check the user's identity then do some source code accordingly.
Hope that helped!
By the way, you can check-out the "Search the Forum" link above. I know there are existing discussions before that could help your concern.Janderol Lozares Jr.
Manila, Phils.0 -
A better way:
Create a new group (=role). You don't have to add permissions.
Instead of testing the users who can view the fields, use the groups who can see the fields.
Then you can add the group the users who can see the fields (or even 1 field per group!). Once this has been programmed and you have to add a new user to see the field, just add the group to that user
For the code in the "OnOpenForm"-trigger of the form:recMemberOf.RESET; recMemberOf.SETCURRENTKEY("User ID","Role ID",Company); recMemberOf.SETRANGE("User ID",USERID); recMemberOf.SETFILTER("Role ID",'%1|%2','SUPER','CANSEEFIELDX'); // allows to see the field if the current user is a super-user or belongs the the group 'CANSEEFIELDX' recMemberOf.SETFILTER(Company,%1|%2','',COMPANYNAME); // allows to see the field if the current user can see the field in all companies or current company CurrForm."My Field".VISIBILE(recMemberOf.FIND('-'));
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions