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)
Suggested Answer

Add dialog box while deleting vendor

(0) ShareShare
ReportReport
Posted on by 90

Hi all,

My requirement is,

when a user attempts to delete a Vendor, we’d like a dialog box to pop up, similar to the screen shot below. In LARGE RED text should be a message “You are about to DELETE a VENDOR. Press Yes to confirm or No to cancel.” Window title should be “WARNING”. This change should apply to all users.

How to accomplish this?

how to create dialog box with above mentioned?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at
  • metam Profile Picture
    11 on at

    In order to do so, you need to set visible to no of the original button and change it with a "Command Button" and the message (dialog box) will pop up automatically,

    Note: don't forget to add the method of the formButtoncontrol to the formcommandbuttonControl

    you need to set in the properties of the command button in the command property as "deleterecord"

    pastedimage1660651851727v1.png

    pastedimage1660651859568v2.png

  • Suggested answer
    Deepak Agarwal Profile Picture
    8,681 on at

    Hello,

    There can be many ways to achieve this, I am sharing the easiest two ways

    1. As suggested by Houssine, add a new button for the dialog box and hide the exiting command button.

    2. Create VendTable extension and extend the delete method to write your logic.

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 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans