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

Notifications

Announcements

No record found.

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.

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Verified answer
    Blue Wang Profile Picture
    on at

    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

  • bilal170795 Profile Picture
    185 on at

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

  • bilal170795 Profile Picture
    185 on at

    Thanks, Blue Wang

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans