Skip to main content

Notifications

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,333 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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans