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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How can I inserts/updates records to multiple tables from single form in AX2012?

(0) ShareShare
ReportReport
Posted on by 950

Scenarios is like I have single form having 2 fast tabs

1st have some data fields from one table and 2nd have grid from another table.

2nd grid table is having relation to 1st with unique filed from 1st table.

While creating new record through form, how can i insert record to both table as 2nd table has dependency from 1st?

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rachit Profile Picture
    4,015 User Group Leader on at

    Hi Rahul,

    In case you are defining the field values of table 2 on the form itself then you can override the write method of table 1 on the form in order to insert a record in table 2( as table2 is dependent on table1).

    Otherwise you can override the insert method of table 1 on the table itself.

    Hope that clarifies.

    Thanks,

    Rachit Garg

    http://axrachit.blogspot.in/

  • Suggested answer
    David Massey Profile Picture
    Microsoft Employee on at

    Look at the documentation for UnitOfWork class and the ChangGroupMode property of form datasource.

  • Suggested answer
    Venkygeorge Profile Picture
    60 on at

    Hi rahul,

    Create one query for both tables and give normal relation with unique fields in table level,

    In form add data source Table1(Master table)

    definatly It will work.

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans