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)

How to use Query created in AOT as Datasource to grid

(0) ShareShare
ReportReport
Posted on by 950
Hi There, I have scenario where Grid need to bind to Query creatd in AOT (not in X++). I have below queries 1) How to create Query with group by/Sum/Avg fields? 2) How to bind these fields created to grid? Thank you.

*This post is locked for comments

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

    1) Right-click Fields node in the query and choose New > AVG or New > SUM. "Group by" is set under query's Group By node.

    2) Drag the query to form's "Data Sources" node - normal data sources will be created automatically and you can use them as usual. I think this feature was introduced in AX2009.

  • Rahul Gopaldas Solanke Profile Picture
    950 on at

    Thakns Martin,

    Am able to create query to bind data to grid showing sum of particular columns, i have drafted my requirement in below grids

    1st grid displays consolidated i.e. sum of records and i want 2nd grid below to display individual records for selected row in 1st grid.

    1) Can i use same query to display it ( both grid have same datasource) ?

    2) I tried but it showing sum of records only

    3) How can i achieve same?

    1st grid
    Id Total Qty Total Price
    1 200 250
    2nd Grid
    Id Type of Qty Qty Price
    1 ABC 150 150
    1 XYZ 50 100

    thank you.

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