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

}
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 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

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,143

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans