Codeunit 3684 BOM Tree Node

Base Application, Microsoft.Inventory.BOM.Tree

Source AL, 95 lines

src/Layers/W1/BaseApp/Inventory/BOM/Tree/BOMTreeNode.Codeunit.allines 7 to 22 of 95, Copyright (c) Microsoft Corporation. MIT

codeunit 3684 "BOM Tree Node"{    Access = Internal;    var        ChildNodes: Codeunit "BOM Tree Node Dictionary";        NodeContent: Codeunit "BOM Node";        IsRootNode: Boolean;        RecursiveLoopFoundErr: Label 'A recursive loop was found in the following chain of nodes: %1.', Comment = '%1 = List of text keys that are part of the ancestry';        KeyListElementTxt: Label '%1, ', Locked = true, Comment = '%1 = the key of the node';    procedure Create(NewNodeContent: Codeunit "BOM Node")    begin        NodeContent := NewNodeContent;        IsRootNode := true; // by default during creation. Reset when adding this as a child.    end;

All 95 lines

Public procedures 8 in 29

Create(NewNodeContent: Codeunit "BOM Node")17-29
AddChild(Child: Codeunit "BOM Tree Node")17-29
TraverseDown(ParentNodeContent: Codeunit "BOM Node"; LineageKeys: List of [Text])17-29
TraverseDown()17-29
GetKey(): Text17-29
GetIsRootNode(): Boolean17-29

All 8 procedures