Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Old menu item is executed when press "Alt+N" in D365

Posted on by 1,048

Hi 

I have create the new button “NewCustomer” (Form to create customer with added functionality) and added this in the "CustTable" form by creating CustTable extension which points to menu item “CustomerquickCreate” (disabled in form extension). When user click New button, my menu item called perfectly but when user clicks "Alt+N" its calling old menu item “CustomerquickCreate”. Can any one suggest me how we can solve this.

Thank you in Advance !

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 229,918 Most Valuable Professional on at
    RE: Old menu item is executed when press "Alt+N" in D365

    Please close the thread by marking the reply (replies) forming the answer.

  • Verified answer
    Guruprasanna Profile Picture
    Guruprasanna 1,048 on at
    RE: Old menu item is executed when press "Alt+N" in D365

    Hi,

    We can set the "newRecordAction" property of the design by creating event for the "OnInitialized" method of the form.

    [FormEventHandler(formStr(CustTable), FormEventType::Initialized)]

       public static void CustTable_OnInitialized(xFormRun sender, FormEventArgs e)

       {

           sender.design(0).newRecordAction("NewButton");

       }

    Thank you

  • Martin Dráb Profile Picture
    Martin Dráb 229,918 Most Valuable Professional on at
    RE: Old menu item is executed when press "Alt+N" in D365

    If you must use a custom button, you have to follow my answer. You have to choose whether you want give up your requirement or extensions.

    Of course, there is a chance that your business requirement can be implemented by some technical solution that works with extensions, unlike your current design with adding a button. But I can't give you any advice until you explain what business requirement are you trying to implement.

    Maybe you can keep the button in place and simply extend the form with form extensions or so.

  • Guruprasanna Profile Picture
    Guruprasanna 1,048 on at
    RE: Old menu item is executed when press "Alt+N" in D365

    Hi,

    Thank you, CustTable extension Form design property  "New Record Action" is disabled,so I cannot set the new button. so is there any other way we can achieve this.

    Thank you

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 229,918 Most Valuable Professional on at
    RE: Old menu item is executed when press "Alt+N" in D365

    You would have to change New Record Action property of the form to point to your new button.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans