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)

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
    Re: Allign report row "related" data from different tables

    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans