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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Query Retrieval Sequence

(0) ShareShare
ReportReport
Posted on by 2

 Hi,

 

Can anyone explain why the join property on a data source is used to determine the sequence in which records are retrieve in an AOT query. This is documented here:

http://msdn.microsoft.com/en-us/library/bb314836.aspx

It seems perverse to me that you would use this property for this purpose. Being unable to use an inner join when you have multiple data sources on the same level would give you adverse results from the query.

Does anyone have any comment?

Cheers,

Nick

 

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,932 Most Valuable Professional on at

    What other solution would you use, taking into account how tables are defined in AX? In SQL, you basically get one new "table", but AX has fixed "classes" describing database tables. When you call QueryRun.next(), data must be fetched somehow to individual tables used in the query().

    If you have, let's say, a header and few lines joined together, the first next() fetches the header and the first line, a subsequent next() fetches the second line etc.

    If the relation is 1:1, it's all basically the same, QueryRun will just always fetch both records together.

    Or what else did you mean?

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

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans