Skip to main content

Notifications

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

Adding a field to rdlc report

Posted on by 16
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. 3,866 on at
    Adding a field to rdlc report
    Follow below steps: standard purchase order (word)
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 11,183 Most Valuable Professional on at
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,749 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 16 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

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,316 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans