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, ...
Suggested Answer

Create a Form with a Parent-Child Relation records

(1) ShareShare
ReportReport
Posted on by 157

Hello everyone

I want to create a form that brings back the child records of a parent record

To be more specific

I have three tables : A) ProdJournalBOM 
                                B)  LinkerTable
                                C)  MyBOMLinesTable


MyBOMLinesTable is a table that has the information of ProdJournalBOM summary. More specifically it creates a record with an index which
related with the number of Journals that belongs to a specific BOM.

the LinkerTable has been created with two fields. The recId of MyBOMLinesTable and the recid from ProdJournalBOM which is related.

Until this step everything works fine.

Now I want when I press a button from the form of MyBOMLinesTable, to see all lines in ProdJournalBOM that related with the specific line a have choose in my MyBOMLinesTable. 

I have tried some things without coding until now, only from the properties of the datasources.
The result I took, was to see in the new form only one record (from existing 5 for example). 

Does anybody know what can be wrong with this and how can this problem be solved?  

  



I have the same question (0)
  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    From what I gather from your description,

    1. The Linker table has an 1:n relation with the ProdJournalBOM.

    2. There is no direct relation between MyBOMLinesTable and ProdJournalBOM.

    If this is true, what data source has been mentioned for the menu item button opening the ProdJournalBOM form?

    It should be LinkerTable.

  • SGbron Profile Picture
    157 on at

    Hello Gunjan

    thank you for your reply!!

    yes, you are correct.

    The datasource that i set on the menu item is the LinkerTable. But i get only one record. The first record or the last one depending the property of the datasource "StartPosition"..

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi,

    Can you try adding a relation on ProdJournalBOM to LinkerTable and try?

  • SGbron Profile Picture
    157 on at

    Unfortunately this doesn't work...

    PS. By mistake I clicked in action and I reported  your post as abusive. Sorry!!!!

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Is the form you are using for ProdJournalBOM a customized one? In that case you should be able to add LinkerTable as the main datasource on the form.

    You are facing this issue because in your case, LinkerTable is the parent and ProdJournalBOM is the child datasource. Since ProdJournalBOM does not have a column with LinkerTable RecIds, the auto join won't 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

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans