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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,921
YUN ZHU 2,012 Super User 2025 Season 2
Jainam M. Kothari 1,999 Super User 2025 Season 2