Skip to main content

Notifications

Announcements

No record found.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans