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)

Hide\Display Enum Combo box Control on a Form with Security Roles (Not with Code X++)

(0) ShareShare
ReportReport
Posted on by 353

Hi -

   I have to display or Hide a combo box control(Enum Field Drop Down) on a form depending on the User Role which is accessing the form. 

For example 

User A with Security Role A should see the Combo Box control when ever it is using the Form.

User B with Security Role B should not see the Combo Box control when ever it is using the Form.

How can I achieve this with Security in AX 2012 r3 cu13. I dont want to hard code the security roles. I would prefer a way to do it by Security in AX. 

*Note*

The Enum Field on a control is not Datasource bound. It is the EDT selected in the properties of the control.

Thank You

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,970 Super User 2025 Season 2 on at

    Hi Muhammad,

    You can set the property NeededPermission of this control to  'Manual'. Then it will not be visible for normal users unless you grant access via form control permissions on a privilege or security role.

  • Muhammad_Ali Profile Picture
    353 on at

    Hello Andre -

     Thank You for you reply.

    Ok I have made that change (Changed needed permissions to MANUAL) also I have created a new privilege and added the form control in the permissions and given it no access. now  is there a way you can suggest me to test my changes (goal is to not  see the form control on the form from the changes I have made above)? I'm a system user and administrator on my DEV VM. How can I test to see if my new control is hidden  ? Do I have to now assign the privilege to a new role as well ?

    Thanks

  • Muhammad_Ali Profile Picture
    353 on at

    *Note*

    Also the form I'm trying to update is (UpdatePriceType) in Open sales orders (Sales and Marketing) There is an update Price drop down control that I want to hide based on a role.

    Sales and marketing/Common/Sales orders/Open sales orders

    7103.Capture2.PNG

    This form  below is the one I'm trying to update. The drop down update should be hidden after I change its needed permission property to Manual. 

    7103.Capture2.PNG

    Thanks

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,970 Super User 2025 Season 2 on at

    Hi Muhammad,

    To be able to hide the control, only the neededpermission change is sufficient as mentioned above. Only when you want to grant acces, you have to add the control.

    You have to test without the system administrator role assigned. Only the role that you created and the system user role. This is because the system administrator is bypassing all security. Eventually, you can use the Security Development Tool (Available on LCS Tools) to test roles without changing role settings or users.

  • Muhammad_Ali Profile Picture
    353 on at

    Thank You Andre- I will test these changes and  then I will mark your answer as valid.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans