Permissions on fields of form

aliennav
Member Posts: 449
Hello,
Can anyone please guide me if we can give permissions on a form say "Sales Order", I want different fields to be visible to different users so that different users do not have to hide/ unhide the fields again and again.
Regards
Can anyone please guide me if we can give permissions on a form say "Sales Order", I want different fields to be visible to different users so that different users do not have to hide/ unhide the fields again and again.
Regards
0
Comments
-
There's not an easy way to do this, because the actual client is not role-based. You can disable fields directly via code by checking if the user has privileges to view the field (maybe via settings in User Setup).0
-
1)If Client is role-based then write the following code to disable certain fields and buttons
MemberOf.setrange("USER ID",userid);
if MemberOf.find('-') then
MemberOf.setrange("ROLE ID",roleid(cleint role id));
if MemberOf."ROLE ID"=roleid(Client role id) then
currform.field.enabled:=false
{currform.contrl.enable:=false}
else
currform.field.enable:=true
2)If Client is not role-base probably you have to set in user setup0 -
Yes... you can use also the Member Of table, but the problem is always the same: you've to disable the fields via code.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