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)

D365 Forms - Command button Delete

(0) ShareShare
ReportReport
Posted on by 642

Hello,

I added command buttons in form, with command "New" and "Delete". The two buttons are displayed but only the "New" works...

An idea ?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    What is the actual table access here? You didn't provide relevant background information. Are you using a standard table or did you create a new table for this customization?

    If you use the correct form patterns, new and delete buttons are already added on standard forms. What type of form are you trying to create?

  • DONA Profile Picture
    642 on at

    yes sure

  • DONA Profile Picture
    642 on at

    Thanks for your reply. Sorry. It's a new table with "Max Access Right" = "Delete" (full access so) and I use a "Simple List and Détails -List Grid" pattern.

    The commands buttons are used for the grid

    Best Regards,

  • DONA Profile Picture
    642 on at

    I also forgot that there are 2 data sources: header and lines (grid)

  • DONA Profile Picture
    642 on at

    I do not understand, if you have no idea. I'm going to use a Button with OnClicked event to do the delete instead of using a buttonCommand because I just tried it and it works.

  • DONA Profile Picture
    642 on at

    with Clicked method not event OnClicked

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Dona83,

    Have you checked if the command set on the delete button is set to 'DeleteRecord'? The command 'Delete' might be used by you, which is wrong.

  • DONA Profile Picture
    642 on at

    Well done André Arnaud, you have found my issue ;-)

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