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 :
Small and medium business | Business Central, N...
Answered

Report Extension (Base Report) from another Table

(0) ShareShare
ReportReport
Posted on by 213

Hello All

am trying to extend the base Report "Aged Accounts Receivable 120" , the field which i want to add on the report is Payment Due date Calculation from Payment terms table on Customer Card.. when i placed the field code field it is coming correctly, then i try to replace the 2nd column "Due Date Calculation " it is not coming

pls correct me where is the issue

PT.jpg

reportextension 60008 "Aged Accounts Receivable 120" extends "Aged Accounts Receivable"
{

    RDLCLayout = './ReportLayouts/Aged Accounts Receivable.rdl';
    dataset
    {
        // Add changes to dataitems and columns here
        add("Cust. Ledger Entry")
        {

            column(DueDate_CustLedgerEntry; "Due Date")
            {
            }

        }
       
        }
    }

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

  • Verified answer
    YUN ZHU Profile Picture
    95,548 Super User 2025 Season 2 on at

    Hi, try the following.

    pastedimage1655340231901v1.png

    More about Report Extension: https://yzhums.com/10723/

    Hope this helps.

    Thanks.

    ZHU

  • BCUSER2024 Profile Picture
    213 on at

    Thanks for the Response .

    But right now also values is not getting over the prints. (But no errors )

    reportextension 60008 "Aged Accounts Receivable 120" extends "Aged Accounts Receivable"
    {
    
        RDLCLayout = './ReportLayouts/Aged Accounts Receivable.rdl';
        dataset
        {
            // Add changes to dataitems and columns here
            add("Cust. Ledger Entry")
            {
    
                column(DueDate_CustLedgerEntry; "Due Date")
                {
                }
    
    
                }
    
            addfirst(Customer)
            {
                dataitem("Payment Terms"; "Payment Terms")
                {
                    DataItemLink = "Code" = field("Payment Terms Code");
                    column(Due_Date_Calculation; "Due Date Calculation")
                    {
    
                    }
                }
            }
    
        }
    }
    

  • Suggested answer
    Nitin Verma Profile Picture
    21,700 Moderator on at

    Hi,

    Please check if there is any payment terms field defined in Customer card.

    pastedimage1655366585018v1.png

    Thanks.

  • BCUSER2024 Profile Picture
    213 on at

    Ya payment terms are already there. And i didnt run the report for only one customer. i put the date as filter so it should come all the customer with details and payment terms. but the field is coming as blank in report.

  • Suggested answer
    Nitin Verma Profile Picture
    21,700 Moderator on at

    Hi, Please change your report as per below

    reportextension 60008 "Aged Accounts Receivable 120" extends "Aged Accounts Receivable"

    {

       RDLCLayout = './ReportLayouts/Aged Accounts Receivable.rdl';

       dataset

       {

           // Add changes to dataitems and columns here

           addbefore("Cust. Ledger Entry")

           {

               dataitem("Payment Terms"; "Payment Terms")

               {

                   DataItemLinkReference = Customer;

                   DataItemLink = "Code" = field("Payment Terms Code");

                   trigger OnAfterGetRecord()

                   begin

                       PayTerms := format("Due Date Calculation");

                   end;

               }

           }

           add("Cust. Ledger Entry")

           {

               column(DueDate_CustLedgerEntry; "Due Date")

               {

               }

           }

           add(TempCustLedgEntryLoop)

           {

               column(Due_Date_Calculation; PayTerms)

               { }

           }

       }

       var

           PayTerms: text;

    }

  • BCUSER2024 Profile Picture
    213 on at

    Thanks Nithin, it works as expected. i marked as completed also.

    I have one doubt, is this is the simplest way, if you dont mind can you tell me the issue in my previous code also. as a beginner it will helps me alot

    thanks alot

  • Suggested answer
    Nitin Verma Profile Picture
    21,700 Moderator on at

    Hi Pravi ,

    Good news that it helped you.

    Yes as you will move and learn more you will understand how NAV/BC works, for now if you are asking for the report extension, I would suggest just open the standard report in Design mode and see which is the best place to add or modify your columns or code.

    Rest all the best for learning.

    Thanks.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans