Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Report Extension (Base Report) from another Table

(0) ShareShare
ReportReport
Posted on by 194

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")
            {
            }

        }
       
        }
    }

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,085 Super User 2024 Season 1 on at
    RE: Report Extension (Base Report) from another Table

    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.

  • BCUSER2024 Profile Picture
    BCUSER2024 194 on at
    RE: Report Extension (Base Report) from another Table

    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
    Nitin Verma 21,085 Super User 2024 Season 1 on at
    RE: Report Extension (Base Report) from another Table

    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
    BCUSER2024 194 on at
    RE: Report Extension (Base Report) from another Table

    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
    Nitin Verma 21,085 Super User 2024 Season 1 on at
    RE: Report Extension (Base Report) from another Table

    Hi,

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

    pastedimage1655366585018v1.png

    Thanks.

  • BCUSER2024 Profile Picture
    BCUSER2024 194 on at
    RE: Report Extension (Base Report) from another Table

    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")
                    {
    
                    }
                }
            }
    
        }
    }
    

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 77,294 Super User 2025 Season 1 on at
    RE: Report Extension (Base Report) from another Table

    Hi, try the following.

    pastedimage1655340231901v1.png

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

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: Report Extension (Base Report) from another Table

    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.

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,187 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans