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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Query data source properties "JoinMode" and "Relations"

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    236,847 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
AlissonGodoy Profile Picture

AlissonGodoy 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans