Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Creating a new record by using buttons in fields.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to create a new record by using the buttons in fields without adding data source

*This post is locked for comments

  • Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: Creating a new record by using buttons in fields.

    Hi,

    Please find the below link:

    http://stackoverflow.com/questions/18184298/how-to-create-a-new-record-in-form-datasource-from-x

  • Verified answer
    Zain Bokhari Profile Picture
    Zain Bokhari 3,208 on at
    RE: Creating a new record by using buttons in fields.

    You can use Command Button with command set to "New" in the properties if you want to add new record on the same form. (like simple list forms)

    Or you can use MenuItem Buttons if you want to open a new form to create a new record by setting the menuitem name in the property for the new record form.

    Your question wasn't clear enough so these are the only guesses left for us to make. Since your first reply to Vilmos rules out the solution through code.

  • Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Creating a new record by using buttons in fields.

    Sorry I do not understand your English, please phrase it better

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Creating a new record by using buttons in fields.

    I don't want the code Mr.Vilmos.

    I want it by creating.

  • Verified answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Creating a new record by using buttons in fields.

    Override the clicked() method on your button. Declare a new table buffer as variable, populate the field, call validateWrite(), then insert() on your buffer.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans