Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

when i insert the data in the form which is inserted in parent table but not in related tables/

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

in form when i create a new record its getting inserted in the parent table but its not reflected in child table i have given relations .how to resolve this problem?

*This post is locked for comments

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: when i insert the data in the form which is inserted in parent table but not in related tables/

    AX is saving records for each bound form controls. So if you have your controls linked against those 3 datasources, you should be set for the saving part.

    If you want to save the records and link them, then you need to implement that yourself to initialize the field value that is responsible for the relation.

    Normally it is done via a surrogate key, which is the RecId field, so child tables should be linked to the parent via RefRecId. That means the parent record must be saved first, so it does get a record identifier value allocated, after which you may populate that on the children to complete the linking.

    https://msdn.microsoft.com/en-us/library/aa556809.aspx

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: when i insert the data in the form which is inserted in parent table but not in related tables/

    hi ..

    i m beginner to ax ..

    i have created 3 tables called student details,cse,ece;

    i hav created related field relation in ece cse to differentiate the dept..where dept is enum in parent  student table.

    and i created a form which  consists of fields form all of these tables when i insert record through this form its get reflected in student details not in cse or ece ..

  • Suggested answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: when i insert the data in the form which is inserted in parent table but not in related tables/

    Hi,

    Please check whether you have given the joinsource property of your childtable datasource. It should have the name of the parenttable datasource.

  • Suggested answer
    István Orosz Profile Picture
    István Orosz 2,137 on at
    RE: when i insert the data in the form which is inserted in parent table but not in related tables/

    Hi,

    What are the relations between your tables, e.g. like SalesTable-SalesLine? How do you show the records on the form, in grids, how are the datasources set? Please give some more info.

    Regards,

    István

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,492 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans