Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

disable delete button

(0) ShareShare
ReportReport
Posted on by 607

Hi Everyone ,

can someone pls tell me how to disable the delete button through code which is present at SalesOrder Tab-> Maintain..at the ActionPane.

Thanks in Advance

*This post is locked for comments

  • Sohaib Cheema Profile Picture
    46,614 User Group Leader on at
    RE: disable delete button

    another thread in parallel, for same issue, i guess.

  • André Arnaud de Calavon Profile Picture
    294,261 Super User 2025 Season 1 on at
    RE: disable delete button

    If it is conditional, then don't use the property on the form design like mentioned above. The example provided by Jii is better.

    However, "site field is blank" sounds odd to me as condition.

  • Verified answer
    JII SAADUDDIN Profile Picture
    1,832 on at
    RE: disable delete button

    But anyway you mentioned "through code"

    here's the example how to manipulate enable and disable

    if( YOUR_STATEMENT_CONDITION_HERE )

      {

          ButtonName.enabled(true);

      }

      else

      {

          ButtonName.enabled(false);

      }

  • Suggested answer
    JII SAADUDDIN Profile Picture
    1,832 on at
    RE: disable delete button

    I Agree with master Mahmoud Hakim

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at
    RE: disable delete button

    just disable it from design as the below

    2821.7.png

  • AXBOY Profile Picture
    607 on at
    RE: disable delete button

    i need to disable the Delete button from Sales Order from Sales Order grid for only those sales order whose site field is blank.

  • Suggested answer
    Mea_ Profile Picture
    60,278 on at
    RE: disable delete button

    To disable it disable deletion on salestable datasource:
    salesTable_ds.allowDelete(false);

  • Suggested answer
    JII SAADUDDIN Profile Picture
    1,832 on at
    RE: disable delete button

    Hi AXBOY, can you please specific? do you want permanet disable delete button or during selections only?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans