web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • DONA Profile Picture
    642 on at
    RE: D365 Forms - Command button Delete

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

  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,024 Super User 2025 Season 2 on at
    RE: D365 Forms - Command button Delete

    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
    RE: D365 Forms - Command button Delete

    with Clicked method not event OnClicked

  • DONA Profile Picture
    642 on at
    RE: D365 Forms - Command button Delete

    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
    RE: D365 Forms - Command button Delete

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

  • DONA Profile Picture
    642 on at
    RE: D365 Forms - Command button Delete

    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
    RE: D365 Forms - Command button Delete

    yes sure

  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,024 Super User 2025 Season 2 on at
    RE: D365 Forms - Command button Delete

    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?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans