Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by 1,044

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 230,354 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,044 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 230,354 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,044 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 230,354 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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans