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.
Thanks.
*This post is locked for comments
This can easily be done. timsaxgrind.blogspot.com/.../renaming-dialogs-ok-button.html
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.
Hi Martin,
I can't get your point.
Is this possible to rename box 'ok' button to 'continue'.
Thanks.
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.
Hi ievgen,
This is ok for dialog scenario.
Now i want to rename the Box::ok button to 'Continue'.
Please suggest.
Thanks.
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.
Hi Edselv Evert,
Please check this blog post microsoftdax.blogspot.co.nz/.../modify-label-of-runbase-ok-button.html
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156