web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Unable to customize "Sales Line FactBox" to add custom fields

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

I am new to AL programming. I am trying to customize "Sales Line FactBox" to add some custom fields. I have added the following code to extend the factbox. But the code is not making any change to the factbox. Please suggest what I am doing wrong. Thanks in advance.

pageextension 50101 SalesLinesProCoFields extends "Sales Line FactBox"
{
    layout
    {
        // Add changes to page layout here
        addafter(Item)
        {
            group("Proco Fields")
            {
                field("Order Id"; Rec.P_Ord_Id) { }
                field("Buy Price"; Rec.P_BuyPrice) { }
                field("Cust Inv No"; Rec.P_CustInvNo) { }
                field("Line No"; Rec.P_LineNo) { }
                field("Supplier Acc No"; Rec.P_SprAccNo) { }
                field("Class"; Rec.P_Cls) { }
            }
        }
    }

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

    Hi,

    Try this if it works for you.

    pageextension 50101 SalesLinesProCoFields extends "Sales Line FactBox"
    {
        layout
        {
            // Add changes to page layout here
            addafter(Item)
            {
                group("Proco Fields")
                {
                    field("Order Id"; Rec.P_Ord_Id) { applicationarea = all;}
                    field("Buy Price"; Rec.P_BuyPrice) {applicationarea = all; }
                    field("Cust Inv No"; Rec.P_CustInvNo) { applicationarea = all;}
                    field("Line No"; Rec.P_LineNo) { applicationarea = all;}
                    field("Supplier Acc No"; Rec.P_SprAccNo) { applicationarea = all;}
                    field("Class"; Rec.P_Cls) { applicationarea = all;}
                }
            }
        }
    
    }

  • S. Singh Profile Picture
    10 on at

    Thanks for your quick reply. It solved my problem. 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 676 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 483 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 310 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans