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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Allow edit specific field

(0) ShareShare
ReportReport
Posted on by 112

Hi Guys,

Just want to know how to allow one field to edit via role or x++ code.

I have a Form1 with 3 datasource on it. Those datasource is set AllowEdit property as "No".

Now, I want to create new role allowing specific user to edit 1 field only per datasource.

I tried to create Privilege containing:

Entry points AccessLevel = Read

Permissions > Tables > Fields > Coupon = EffectiveAccess = Update

Forms > MyForm > MyFieldForm > EffectiveAccess = Update && DefaultAccess = Update

priv.PNG

Unfortunately, its not working. 

I need help guys, thank you in advance.

Best Regards,

r0bert

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    If the data source property AllowEdit is no, nobody can edit it. You can't use the security roles to bypass such setting.

    Instead you should set AllowEdit to yes and use security roles to prevent unwanted users from changing the data.

  • Suggested answer
    udaY-ch Profile Picture
    5,133 on at

    Hi,

    You can follow the link, where the example is shown for restricting a button access, similar way you can do for the particular field by setting the Needed permission property in the form control level. And then add the control the form permission node and don't any access in the form node permission. Instead you can set the permission in the privilege level.

    docs.microsoft.com/.../how-to-use-roles-and-privileges-to-restrict-access-to-a-button

    /Uday.

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

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans