How hide field in nav 17 based on user role

kmkaotkmkaot 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

Best Answer

Answers

  • davmac1davmac1 Member Posts: 1,283
    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.
  • kmkaotkmkaot Member Posts: 261
    edited 2017-11-23
    Table level permission is available but field level is needed.
    please suggest, there is a code

    for example
    curpage.field.visible(false)

Sign In or Register to comment.