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)

Allign report row "related" data from different tables

(0) ShareShare
ReportReport
Posted on by 270

I have a report based on

InventCostTrans

  >InventTrans

    >PurchLine

Relations are defined as InventTransId between tables

When the report runs the InventTrans and PurchLine data for the first row appears on the second row and continues to be one row out.

example:

ItemNo for A        <BLANK>

ItemNo for B        ItemName for A

ItemNo for C        ItemName for B

etc

I have attached a report where I have added the InventTransId to the end of the report page (right) to show the misalignment as it isn't clear in the report that the data is not correct.

Any ideas what I am doing wrong ?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    This problem is cause by your report's design structure.  Be aware the the report fetch's each table in the execute section method.  

    Restructure your report's design as follows:

    Body:InventCostTrans   (Table Property=InventCostTrans, No fields - just the body)

    Body:InventTrans           (Table Property=InventTrans, No  fields)

    Body:PurchLine             (Talbe Property=PurchLine - place all your fields in this body)

    The report will then call

    Body:InventCostTrans/methods/execute section to read the correct InventCostTrans record

    Body:InventTrans/methods/execute section to read the correct InventTrans record

    and finally

    Body:PurchLine/methods/execute section to read the correct PurchLine record

    Once the report enters the last body, fields can be added from any of the data source tables and will show the correct values.

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