Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Update Field on Pick Worksheet to be a value in bin contents

Posted on by 372

Hello,

There is a Source Expression field on the Pick Worksheet that is the Qty. on Cross Dock. Since this field can not be filtered and sorted, I am trying to create a new field that is the equivalent.

I cannot make a Flowfield or else the page errors out.

I added a decimal field to the table, and want add a Action Button that when clicked (Like the autofil quantity to handle), which will go through all the records on the Pick Worksheet, find the Quantity in a specific bin based on filters and than update each record. I know my code is wrong but here is what I started with. Either updated all the records on CurrPage, or where the "Name" is = to the Name the user has open.

                trigger OnAction();
                var
                BinContentRec : Record "Bin Content";
                QtyInCrossDock : Decimal;
                Begin
                    BinContentRec.SetRange("Location Code","Location Code");
                    BinContentRec.SetRange("Item No.","Item No.");
                    BinContentRec.SetRange("Variant Code","Variant Code");
                    BinContentRec.SetRange("Bin Code",'CROSS DOCK');
                    
                    QtyInCrossDock:=BinContentRec."Quantity (Base)";
                    "Qty. in Cross-Dock":=QtyInCrossDock;
                    
                End;
I want the field with the arrow pointing at it filled in based on the above filters.
pastedimage1573838745313v2.png
Thank you!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans