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)

Multiple Data Sources. 1 GRID HELP

(0) ShareShare
ReportReport
Posted on by

Hello guys, im facing a problem. 

i have a form, inside that form there is a grid with a number of fields(CustTrans.PaymMode,CustPaymModeTable.Name,GeneralJournalEntry.DocumentDate,GeneralJournalAccountEntry.CurrencyCode, etc )

as you can see i take values from a number of tables. but in the grid control i can only set one datasource.

¿how can i make the query that relates everything i need from those tables and populate the grid in response to that query?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    You need to join all data sources in question together. What you'll set to grid's DataSource property is the root data source.

  • Community Member Profile Picture
    on at

    thanks a lot. so i ll start from CustTrans(Using account numb, a custom field, and PaymMode), join the query to the other tables. is this correct?

    where i write the query? ( overriten executyQuery method or what?)

  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    I can't tell what tables should be in your query, because I don't know what you're trying to achieve.

    How to join data sources is explained in How to: Join Data Sources for a Form.

    You should use the documentation that Microsoft prepared for you; it will answer many of questions of yours.

  • Suggested answer
    Community Member Profile Picture
    on at

    If you are using a list page template then you have to make an AOT query and join all tables, but if you are using any other type of form then what you need to do is set a main datasource(CustTable) and then go to form => go to each required datasources =>select join source (CustTable) and select Link type=> outerJoin

    Now select main datasource(CustTable) as datasource of the grid, now you can add all tables field in that grid. Please tell me if you are facing any issue.

    4265.Untitled.png

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