How hide field in nav 17 based on user role

kmkaot
Member Posts: 261
Hi
I want hide Item unit cost in Item card and Item list pages based on user id. I have a field in user setup table with boolan type.
Will you suggste small code
like currpage.unitcist.visible(false)
Please
warm reagards
Krsi
I want hide Item unit cost in Item card and Item list pages based on user id. I have a field in user setup table with boolan type.
Will you suggste small code
like currpage.unitcist.visible(false)
Please
warm reagards
Krsi
0
Best Answer
-
curpage.field.visible(false)
1. Define a global var on a page, say "FieldXVisible"
2. Edit the "FieldX" property, in Visible property put your FieldXVisible variable
3. in OnOpenPage trigger add a code setting up the value of FieldXVisible var depending on the conditions you need.
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-036
Answers
-
A better way - use access by permissions and use the NAV security to show what the user has access to.
You have to link the access by permissions property in the pages to objects this user does not have permissions for, but the users who need to see it, do have the permissions.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Table level permission is available but field level is needed.
please suggest, there is a code
for example
curpage.field.visible(false)
0 -
curpage.field.visible(false)
1. Define a global var on a page, say "FieldXVisible"
2. Edit the "FieldX" property, in Visible property put your FieldXVisible variable
3. in OnOpenPage trigger add a code setting up the value of FieldXVisible var depending on the conditions you need.
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-036
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