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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

disable delete button

(0) ShareShare
ReportReport
Posted on by 625

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

I have the same question (0)
  • Suggested answer
    JII SAADUDDIN Profile Picture
    1,832 on at

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

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

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

  • AXBOY Profile Picture
    625 on at

    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
    Mahmoud Hakim Profile Picture
    17,887 on at

    just disable it from design as the below

    2821.7.png

  • Suggested answer
    JII SAADUDDIN Profile Picture
    1,832 on at

    I Agree with master Mahmoud Hakim

  • Verified answer
    JII SAADUDDIN Profile Picture
    1,832 on at

    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);

      }

  • André Arnaud de Calavon Profile Picture
    304,191 Super User 2026 Season 1 on at

    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.

  • Sohaib Cheema Profile Picture
    49,679 Super User 2026 Season 1 on at

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans