Skip to main content

Notifications

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

Adding a field to rdlc report

(1) ShareShare
ReportReport
Posted on by 30
Hi,
I have added  a field in to the Purchase Order using a page extension & table extension code. The values are displaying on the purchase Order page. But the purchase Order template rdlc the field is displaying as blank. Can you please advice where I am going wrong.
 
 
 
 
 
        field(50012; "Tariff No_"; Text[100])
        {
            Caption = 'CN Code';
            FieldClass = FlowField;
            Editable = False;
            CalcFormula = Lookup(Item."Tariff No." where("No." = field("No.")));


 
       }   
 
Report.al code to display the field in the BC Purchase Order report template
 
                     dataitem("Itemt"; "Item")
                        {
                            DataItemLink = "Tariff No." = field("No."), "No." = field("No.");
                            DataItemLinkReference = "Purchase Line";
                            DataItemTableView = sorting("No.");
                            column(TTariffNo_PurchaseLine; "Item"."Tariff No.")
                            {
 
                            }


 
                       }
                                                                                                                                                                         
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,744 on at
    Adding a field to rdlc report
    Follow below steps: standard purchase order (word)
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 12,290 Most Valuable Professional on at
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,036 Super User 2024 Season 2 on at
    Adding a field to rdlc report
    Hi, hope the following can give you some hints.
    Dynamics 365 Business Central 2021 release wave 1 (BC18): Report extensibility (ReportExtension Object)
    Dynamics 365 Business Central: How to add Media or MediaSet data type (Pictures) to a report
     
    Thanks.
    ZHU
  • RB-10051553-0 Profile Picture
    RB-10051553-0 30 on at
    Adding a field to rdlc report
    Hi Sami,,
    I have already added the field to the RDLC dataset as well, not working.
     
  • Suggested answer
    Sami Ullah Profile Picture
    Sami Ullah 284 on at
    Adding a field to rdlc report
    Hi,
     
    When you extend a table and add a new field, the report dataset must also include this field. To ensure the new field is available to the RDLC layout, you need to update the Dataset of the RDLC report.
     
    Open the report object related to the Purchase Order and ensure the new field is added to the report's dataset. Without this, the RDLC report will not be able to access or display the field.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans