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

Extending Sales Quote subform

(0) ShareShare
ReportReport
Posted on by

I've just extended the "Item" table, added a "StandardWeight" field, and also added it to sales header and sales line. and finally, added it to sales quote subform. It was supposed to autofill, but it doesn't. How do i fix it?

pageextension 50101 "Sales Quote Extension" extends "Sales Quote Subform"
{
    layout
    {
        addafter(Description)
        {

            field("BoxPiece"; BoxPiece)
            {
                Caption = 'Box/Piece';
                ToolTip = 'Specifies how many boxes are being sold';
                ApplicationArea = All;
            }

            field("StandardWeight"; "StandardWeight")
            {
                Caption = 'Standard Weight';
                ToolTip = 'Specifies Item Standard Weight';
                TableRelation = Item;
                Editable = false;
                ApplicationArea = All;
                trigger OnValidate()
                begin
                    CurrPage.Update();
                end;
            }
        }

    }
}
  • Suggested answer
    JAngle Profile Picture
    161 on at

    Does “Standard Weight” differ much from the existing fields of gross and net weight? This development could be for nothing if so.

    If you’ve added it to the sales line too surely it should be filled in there? Page will display the data from the table. If you want the page to just display a value which is calculated then you need a function to do that. The data has a dependency against the item so you can use that value to perform the calculation. This video explains it well: https://youtu.be/fXDxAM0ZrvU

    If you have it set on the header level too I would actually be placing the data into the table so you can then sum the weight. Which I assume is your intention. You will want a supporting codeunit here. Use an event subscriber for the sales line table for OnValidate of the “No.” field. Add logic for whether it’s an “item” type line and fill in your field if it is populated on the item table. You could then update the header field with the sum of the lines

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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 631 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 409 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 222 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans