Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Dynamics NAV 2016 - set up field level security

Posted on by 35

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

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Dynamics NAV 2016 - set up field level security

    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
    Marcellus 2,735 on at
    RE: Dynamics NAV 2016 - set up field level security

    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

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,134 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans