Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to disable a button in Form

Posted on by 505

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
    Safeer PS 505 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
    Mrdude 285 on at
    RE: How to disable a button in Form

    you must use privilege

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

  • Safeer PS Profile Picture
    Safeer PS 505 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
    Safeer PS 505 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
    Safeer PS 505 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
    Safeer PS 505 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
    Vilmos Kintera 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

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans