Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Calling a Flowfield

Posted on by 35

i have a flowfield in ItemCard i want to transfer only its value to a customized normal field located in item journal and i need that field to be editable. Is it possible?

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    RE: Calling a Flowfield

    Hi, This is possible, such as the simple example below.

    pastedimage1683595649236v1.png

    pastedimage1683595898667v2.png

    Source Code:

    tableextension 50112 MyExtension extends "Item Journal Line"
    {
        fields
        {
            field(50100; ZYInventory; Decimal)
            {
                DataClassification = CustomerContent;
            }
            modify("Item No.")
            {
                trigger OnAfterValidate()
                var
                    Item: Record Item;
                begin
                    if Item.Get(Rec."Item No.") then begin
                        Item.CalcFields(Inventory);
                        ZYInventory := Item.Inventory;
                    end;
                end;
            }
        }
    }
    
    pageextension 50112 MyExtension extends "Item Journal"
    {
        layout
        {
            addafter("Item No.")
            {
                field(Inventory; Rec.ZYInventory)
                {
                    ApplicationArea = All;
                    Caption = 'Inventory';
                    ToolTip = 'Inventory';
                }
            }
        }
    }

    Hope this helps.

    Thanks.

    ZHU

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