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

Announcements

No record found.

News and Announcements icon
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

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
    István Orosz Profile Picture
    2,137 on at

    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

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

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

  • Community Member Profile Picture
    on at

    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
    Vilmos Kintera Profile Picture
    46,149 on at

    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

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

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans