Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Report - how to pass two tables as dataitems?

(0) ShareShare
ReportReport
Posted on by 104

Hi. I create report that need to based on two tables as two dataitems. For example:

dataitem(SalesHeader; "Sales Header")

{

some column elements

dataitem(SalesLine; "Sales Line")

{

some SalesLine column elements

}

}

I run this report by pass Sales Header as .SetTableView of report. But I also need to pass Sales Line to this report to show only specific lines related to this Sales Header. How can I set table view also for second dataitem (Sales Line in this example?)

(SalesHEader/SalesLine is only example of report - I have more complicated example and I need to filter exacly two dataitems when Report run)

  • Suggested answer
    Amit_Sharma Profile Picture
    Amit_Sharma 2,545 on at
    RE: Report - how to pass two tables as dataitems?

    Hi,

    Refer this link for above requirement.

    https://erpconsultors.com/sales-invoice-report-format-and-development/

    Regards

    Amit Sharma

    www.erpconsultors.com

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans