Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

How to rename dialog ok button to Import

(0) ShareShare
ReportReport
Posted on by 435

Hi all,

I will use my custom class to get file name via dialog Field.I want to change ok button name to Import.

How to achieve this.

8311.1.JPG

Thanks.

*This post is locked for comments

  • Suggested answer
    cowboyott Profile Picture
    cowboyott 200 on at
    RE: How to rename dialog ok button to Import

    This can easily be done.  timsaxgrind.blogspot.com/.../renaming-dialogs-ok-button.html

  • Martin Dráb Profile Picture
    Martin Dráb 230,842 Most Valuable Professional on at
    RE: How to rename dialog ok button to Import

    Not "rename", but you can create your own dialog with "Import" and "Cancel" or something like that, but don't try to put it into the Box class, because it's not something general-purpose like OK/Cancel and Yes/No.

    But seriously, I think you're wasting time with something you shouldn't be trying to change in the first place. Respect how AX works and what user will get at all other places.

  • Edselv Evert Profile Picture
    Edselv Evert 435 on at
    RE: How to rename dialog ok button to Import

    Hi Martin,

    I can't get your point.

    Is this possible to rename box 'ok' button to 'continue'.

    Thanks.

  • Martin Dráb Profile Picture
    Martin Dráb 230,842 Most Valuable Professional on at
    RE: How to rename dialog ok button to Import

    The method is called ok() because is shows OK button. If it did something else, the name would be misleading.

    You can build your own method creating a dialog with Continue, if you insist.

  • Edselv Evert Profile Picture
    Edselv Evert 435 on at
    RE: How to rename dialog ok button to Import

    Hi ievgen,

    This is ok for dialog scenario.

    Now i want to rename the Box::ok button to 'Continue'.

    70255.2.JPG

    Please suggest.

    Thanks.

  • Martin Dráb Profile Picture
    Martin Dráb 230,842 Most Valuable Professional on at
    RE: How to rename dialog ok button to Import

    That this is how dialogs look like and you surely don't want to change all dialogs in AX, therefore consider if it's reasonable changing your single dialog.

    I would leave the button as it is and change the caption ("My Dialog") and the field label ("FileName") to something explaining what will happen when the dialog is confirmed (by pressing OK). You can also change the HelpText (currently "File path and name").

    If you insist on the change, please tell us how you create the dialog.

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: How to rename dialog ok button to Import

    Hi Edselv Evert,

    Please check this blog post microsoftdax.blogspot.co.nz/.../modify-label-of-runbase-ok-button.html

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans