Announcements
No record found.
field("Net Weight"; rec."Net Weight") { ApplicationArea = All; Caption = 'Net Weight'; ToolTip = 'Enter Net Weight'; trigger OnValidate() var // NetSH: record "Sales Header"; NetSL: record "Sales Line"; begin NetSL.reset(); //NetSL.SetRange("No.", rec."No."); NetSL.SetRange("Document Type", rec."Document Type"); NetSL.SetRange("Document No.", rec."No."); If NetSL.FindSet() then repeat if NetSL.Type = NetSL.Type::Item then begin NetSL.Quantity := (rec."Net Weight"); NetSL.Modify(true); CurrPage.Update(); end; until NetSL.Next() = 0; end; }
If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems. To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further! Thanks for being an active part of the Dynamics 365 Community!
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,140 Super User 2026 Season 1
YUN ZHU 1,009 Super User 2026 Season 1
Dhiren Nagar 960 Super User 2026 Season 1