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
-
closecurpage.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 - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;6
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 -
closecurpage.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 - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;6
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
