web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Dynamics NAV 2016 - set up field level security

(0) ShareShare
ReportReport
Posted on by 41

On the item card in Dynamics NAV 2016; I need to have one of the fields be read only or read\write depending upon the user.  The field always needs to be visible, but certain users need to be able to modify the data in the field.  I have seen a number of ways to do this but none seem to match what we are looking for.  I am up for using a codeunit to manage the field but do not see a way to get the user name tied in to the code

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    You can also check "Field Level Security using Events in Dynamics NAV 2016":

    community.dynamics.com/.../field-level-security-using-events-in-dynamics-nav-2016

  • Verified answer
    Marcellus Profile Picture
    2,735 on at

    Hi Lockforward,

    Here is an idea:

    1. Add a boolean field to the user setup table that can indicate if the user is allowed to edit the field or not. I will call it "Can Edit Field".

    2. In the item card create a boolean variable and assign it to your field's Editable property

    3. On Open Page get the current user's record from the user setup table and assign the value of the "Can Edit Field" to your boolean variable.  If there is no record for the user in the user setup the value should be false.

    Regards,

    Marcell

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans