Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    Deepak Agarwal Profile Picture
    Deepak Agarwal 8,566 on at
    RE: Add dialog box while deleting vendor

    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.

  • metam Profile Picture
    metam 11 on at
    RE: Add dialog box while deleting vendor

    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
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Add dialog box while deleting vendor

    Hi!

    Check this: https://dynamicsuser.net/ax/f/developers/95540/add-color-to-the-text-on-yesno-box/498805

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,309 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans