Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Query data source properties "JoinMode" and "Relations"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi There

When i edit the query for a report i found that there are two setting for a specific data source. they are "JoinMode" and "Relations".

For "JoinMode", i'm pretty sure that i can understand. but for the "Relations", i'm a little bit confused.

I looked into some of the system queries, for some of the data source, if the setting for "JoinMode" is configured as "OutJoin", normally i found that the "Relations" is configured as "No".

Since the "OutJoin" is also one kind of relation, Why we have to configure the "Relations" as "No". does it has special meaning ?

The Microsoft official specification for "Relations" as below:

Determines if the query system should use the relations that are defined for tables and extended data types.

If set to Yes, the query is automatically updated if a relation is changed.

If we configure the "Relations" as "No", and the "JoinMode" as "OutJoin", i think the system also use the relations that are defined for tables and extended data types, right ?

The Form also have the data sources, we control the relations by configure the form data source's "LinkType", and we don't have to configure the relations, is there any difference between the form data source and query data source ?

Please correct me.

many thanks.

*This post is locked for comments

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    RE: Query data source properties "JoinMode" and "Relations"

    The type of join defines how tables are joined, i.e. outer join means that records from the parent table are returned even if there are no corresponding records in the child table.

    Relations define which fields (and possibly filters) are used when joining tables together.

    You typically need a relation when using a join, but you can't say that outer join is a relation. By the way, relations are used for many other things than just joins.

    Relations property says whether a relation should be taken automatically from a table or EDT. If it's set to No, you still can define relations directly in the query.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans