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
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
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156