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
close
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.
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.
close
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.
Answers
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.
http://mibuso.com/blogs/davidmachanick/
please suggest, there is a code
for example
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.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03