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 :
Microsoft Dynamics AX (Archived)

Outer Join Two grid Question

(0) ShareShare
ReportReport
Posted on by

Hi evryone,

I have a Form with two grid and i want to show all records in both of them, i have found that i should use the OuterJoin to show all parent records in G1 and all matched child records in G2. Based on this link http://dynamicsaxhari.blogspot.co.nz/2014/09/form-data-source-link-types-active.html,

But also, i need to filter the second grid based on the first one : wich mean when i select a field from G1,  only the related field in G2 will be shown (not just be selected wich mean to hide the other records) How can i combine the outerJoin logic with this need.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi Ennasri,

    To achieve this you need to add 2 data sources on your form. Second data source should have join source = first data source and LinkType = Delay.

  • Community Member Profile Picture
    on at

    Hi ievgen Miroshnikov,

    I need to get only the related field in G2 when i select record from G1 , but with this method they will be just  selected in G2 and the other records will be shown too.

  • Mea_ Profile Picture
    60,284 on at

    Can you please add screenshot or any other details ? it's hard to understand what are you trying to achieve.

    Are you saying that you can see all records from G2, not only related ?

  • Community Member Profile Picture
    on at

    Tnak you for your reply,

    I need to get the all records in G2 , but when I select a record from G1 i should get only related records shown in G2.

    With Join datasource and link type delay; when i select a record from G1 i get just one record selected in G2 not the hole related records

  • Mea_ Profile Picture
    60,284 on at

    I think something wrong with relations between G1 and G2.

    If you look at sales table form it has 2 grids : header and lines with link = delayed and everything works fine.

    Actually all forms with header and line  have link = delayed.

    Can you please check relations between your tables ?

  • Community Member Profile Picture
    on at

    Ok i will , and i will give you a feed back, thank you for your help

  • Community Member Profile Picture
    on at

    I have checked relation; i have InventTable and BOM table and relation is well established.

    what i need is  when i click on a specific itemid from G1(InventTable), i should get in G2 only related records(BOM). And  if their is no related BOM field , G2 should appear empty.

    In my case, and using join DS (inner/outer..) , i didn't get this result.

  • Mea_ Profile Picture
    60,284 on at

    I did create form that have 2 DS: InventTable and BOM and everything works like a charm

    5852.BOM.png

    However I don't really understand what you want to achieve. Because BOM table contains BOM lines so if you will link item and BOM line you will see all lines that have this item.

    If you want to see all BOM header, there is no direct connection because Item and BOM header are linked trough BOM version.

  • Community Member Profile Picture
    on at

    That is it! i should see all lines that have this item, but in my case i see all of lines.

    And as you have said , i have used BOM version to connect items with BOM lines

  • Mea_ Profile Picture
    60,284 on at

    Probably it's time to share screenshot of how it is done

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans