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)

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

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,284 on at

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

  • AXBOY Profile Picture
    607 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
    301,049 Super User 2025 Season 2 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,438 User Group Leader 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

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans