Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Command Button(New) acts like a Menu Item Button

(0) ShareShare
ReportReport
Posted on by 185

Hi, I applied a "Toolbar and List Page" pattern in "CustTable" form Tab Page. In which I added a grid and an action pane but the Comand button(OK) is opening the Form for the new customer, while it should create a new line in the grid.

  • bilal170795 Profile Picture
    185 on at
    RE: Command Button(New) acts like a Menu Item Button

    Thanks, Blue Wang

  • bilal170795 Profile Picture
    185 on at
    RE: Command Button(New) acts like a Menu Item Button

    I am adding this New Commad Button in "CustTable" form Using Extension can you help me what I can do?

  • Verified answer
    Blue Wang Profile Picture
    on at
    RE: Command Button(New) acts like a Menu Item Button

    Hi Bilal,

    When you click the New button,it will open a Dialog Page"DirPartyQuickCreateForm".

    You can create a normal button and code on its clicked method (Give New to its Label and NormalImage property to make it look like a New button).

    public void clicked() 
    {
        yourDataSource_ds.create();
    }

    This issue has been discussed many times, You can refer these links:

    https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/295540/add-a-command-button-but-it-open-a-dialog-page?pifragment-94775=1

    https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/278332/cust-table-form-new-tab-error-in-d365?pifragment-94775=1

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Command Button(New) acts like a Menu Item Button

    Look in the create method of the form data source. Most likely this new form is launched when a new record is created in data source.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans