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

Announcements

No record found.

News and Announcements icon
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,093

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

  • Suggested answer
    Martin Dráb Profile Picture
    241,408 Most Valuable Professional on at

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

  • Guruprasanna Profile Picture
    1,093 on at

    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
    241,408 Most Valuable Professional on at

    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,093 on at

    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
    241,408 Most Valuable Professional on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans