web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by 1,078

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

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,002 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.

  • Guruprasanna Profile Picture
    1,078 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

  • Martin Dráb Profile Picture
    237,002 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.

  • Verified answer
    Guruprasanna Profile Picture
    1,078 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
    237,002 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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Willem van Duren Profile Picture

Willem van Duren 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans