Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to disable a button in Form

(0) ShareShare
ReportReport
Posted on by 507

Dear All,

Requirment:

Module : Sales and Marketing 

A single user should have a specific role where in he will be able to do all Sales order operations except "New Sales Order". The button option present in all forms of Sales order should be disabled for this role.

Later this role will be assigned to specific User.

0218.error1.PNG

*This post is locked for comments

  • Safeer PS Profile Picture
    507 on at
    RE: How to disable a button in Form

    How to see that a form 's privilege assined to roles in my user entry points and how to check in AOT.

    REst button control I have done but no output. I believe Form permissions is the issue

  • Suggested answer
    Mrdude Profile Picture
    285 on at
    RE: How to disable a button in Form

    you must use privilege

    msdn.microsoft.com/.../gg881160.aspx

  • Safeer PS Profile Picture
    507 on at
    RE: How to disable a button in Form

    Why we cant codes,  Because of hard coded value. Its not best practise

  • Safeer PS Profile Picture
    507 on at
    RE: How to disable a button in Form

    Basically user should be able to do all functions of Sales Clerk and disable create SO button in all forms whether it be create, Edit,Details etc...

    As per ur plan still the user able to  create SO while going for edit option.

  • Safeer PS Profile Picture
    507 on at
    RE: How to disable a button in Form

    But the problem while creating with roles was that, within Sales order list page we can select a particular SO and dole clcik and again new SO option present . Like wise so may "Create SO " Option present in various forms. And sometimes even removing privldge also not woking .

    'SalesTableForEdit' privledege is there then while editing SO also users can create SO.

  • Safeer PS Profile Picture
    507 on at
    RE: How to disable a button in Form Ax 2012

    IS there a way using code to disable for a specific role or user

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: How to disable a button in Form Ax 2012

    You have to identify the menu item associated with the button, and in the Add-ins > Security development tools you may view what specific privileges, duties or roles have this in. Higher access wins, that means if any of the roles which your users have allows creation of sales orders, you need to create a new security role similar to that one, excluding the Security privilege which grants sales order creation.

    You may find this explained in the documentation in more details.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
Zain Mehmood Profile Picture

Zain Mehmood 6 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans