Codeunit 18059971 EOS Hierarchy Mgt.
Codeunit 18059971 EOS Hierarchy Mgt.
Methods
HideDialog
procedure HideDialog(value: Boolean)
Parameters / Return Value
- value
Boolean
HideDialog
procedure HideDialog(): Boolean
Parameters / Return Value
- Returns
Boolean
GetItemHierarchyAtDate
procedure GetItemHierarchyAtDate(ItemHierarchyType: Enum "EOS Item Hierarchy Type"; Level1Code: Code[20]; var inTextArray: array[7] of Text; RequestDate: Date; Description: Boolean)
Call this function to populate inTextArray with item hierarchy at request date
Parameters / Return Value
ItemHierarchyType
Enum "EOS Item Hierarchy Type"
The item hierarchy type as enum “EOS Item Hierarchy Type”
Level1Code
Code[20]
The first level of hierarchy that corresponds to item no.
inTextArray
Text[]
The array to populate
RequestDate
Date
The calculation date of the hierarchy
Description
Boolean
Set true if you want to get the description in the array
GetItemHierarchyFieldCaption
procedure GetItemHierarchyFieldCaption(CaptionExpr: Text[80]): Text[50]
Parameters / Return Value
CaptionExpr
Text[80]
Returns
Text[50]
LinkItemToHierarchy
Obsolete
Pending: Replaced by a different overload. (26.0)procedure LinkItemToHierarchy(Level1Code: Code[20]; Level2Code: Code[20]; EOSItemHierarchyType: Enum "EOS Item Hierarchy Type")
Parameters / Return Value
Level1Code
Code[20]
Level2Code
Code[20]
EOSItemHierarchyType
Enum "EOS Item Hierarchy Type"
LinkItemToHierarchy
procedure LinkItemToHierarchy(Level1Code: Code[20]; Level2Code: Code[20]; EOSItemHierarchyType: Enum "EOS Item Hierarchy Type"; Execute: Boolean): Integer
Call this function to link an item to an hierarchy level with a relation request
Parameters / Return Value
Level1Code
Code[20]
The item number to link to the hierarchy
Level2Code
Code[20]
The hierarchy level code to link the item to
EOSItemHierarchyType
Enum "EOS Item Hierarchy Type"
The item hierarchy type as enum “EOS Item Hierarchy Type”
Execute
Boolean
Specifies whether the request should be executed immediately.
Returns
Integer
LinkItemToNewHierarchy
Obsolete
Pending: Replaced by a different overload. (26.0)procedure LinkItemToNewHierarchy(Level1Code: Code[20]; NewLevel: code[20]; CurrentLevel: code[20]; EOSItemHierarchyType: Enum "EOS Item Hierarchy Type")
Parameters / Return Value
Level1Code
Code[20]
NewLevel
code[20]
CurrentLevel
code[20]
EOSItemHierarchyType
Enum "EOS Item Hierarchy Type"
LinkItemToNewHierarchy
procedure LinkItemToNewHierarchy(Level1Code: Code[20]; NewLevel: code[20]; CurrentLevel: code[20]; EOSItemHierarchyType: Enum "EOS Item Hierarchy Type"; Execute: Boolean): Integer
Call this function to link an item to a new hierarchy level with a relation request
Parameters / Return Value
Level1Code
Code[20]
The item number to link to the hierarchy
NewLevel
code[20]
The new hierarchy level code to link the item to
CurrentLevel
code[20]
The current hierarchy level code the item is linked to
EOSItemHierarchyType
Enum "EOS Item Hierarchy Type"
The item hierarchy type as enum “EOS Item Hierarchy Type”
Execute
Boolean
Specifies whether the request should be executed immediately.
Returns
Integer
UpdateItemHierarchy
Obsolete
Pending: “HideDialog” is now a global property. (26.0)procedure UpdateItemHierarchy(ItemHierarchyType: Enum "EOS Item Hierarchy Type"; newHideDialog: Boolean)
Parameters / Return Value
ItemHierarchyType
Enum "EOS Item Hierarchy Type"
newHideDialog
Boolean
UpdateItemHierarchy
procedure UpdateItemHierarchy(ItemHierarchyType: Enum "EOS Item Hierarchy Type")
This function update all item hierarchy at today
Parameters / Return Value
ItemHierarchyType
Enum "EOS Item Hierarchy Type"
The item hierarchy type as enum “EOS Item Hierarchy Type”
FillItemClusterBuffer
procedure FillItemClusterBuffer(var TempItemClusterDetail: Record "EOS Item Cluster Detail" temporary; ItemClusterHeader: Record "EOS Item Cluster Header"; StartingDate: Date; EndingDate: Date; SaveValues: Boolean)
This function will create a temporary record of Item Cluster Detail from a Cluster header and a range of dates. If the parameter “SaveValues” is true, the buffere will be stored.
Parameters / Return Value
TempItemClusterDetail
Record "EOS Item Cluster Detail"
ItemClusterHeader
Record "EOS Item Cluster Header"
StartingDate
Date
EndingDate
Date
SaveValues
Boolean
GetCustomerHierarchyAtDate
procedure GetCustomerHierarchyAtDate(Level1Code: Code[20]; var inTextArray: array[11] of Text; RequestDate: Date; Description: Boolean)
Call this function to populate inTextArray with customer hierarchy at request date
Parameters / Return Value
Level1Code
Code[20]
The first level of hierarchy that corresponds to customer no.
inTextArray
Text[]
The array to populate
RequestDate
Date
The calculation date of the hierarchy
Description
Boolean
Set true if you want to get the description in the array
GetCustomerHierarchyFieldCaption
procedure GetCustomerHierarchyFieldCaption(CaptionExpr: Text[80]): Text[50]
Parameters / Return Value
CaptionExpr
Text[80]
Returns
Text[50]
LinkCustomerToHierarchy
Obsolete
Pending: Replaced by a different overload. (26.0)procedure LinkCustomerToHierarchy(Level1Code: Code[20]; Level2Code: Code[20])
Parameters / Return Value
Level1Code
Code[20]
Level2Code
Code[20]
LinkCustomerToHierarchy
procedure LinkCustomerToHierarchy(Level1Code: Code[20]; Level2Code: Code[20]; Execute: Boolean): Integer
Call this function to link a customer to an hierarchy level with a relation request
Parameters / Return Value
Level1Code
Code[20]
The customer number to link to the hierarchy
Level2Code
Code[20]
The hierarchy level code to link the customer to
Execute
Boolean
Specifies whether the request should be executed immediately.
Returns
Integer
LinkCustomerToNewHierarchy
Obsolete
Pending: Replaced by a different overload. (26.0)procedure LinkCustomerToNewHierarchy(Level1Code: Code[20]; NewLevel: code[20]; CurrentLevel: code[20])
Parameters / Return Value
Level1Code
Code[20]
NewLevel
code[20]
CurrentLevel
code[20]
LinkCustomerToNewHierarchy
procedure LinkCustomerToNewHierarchy(Level1Code: Code[20]; NewLevel: code[20]; CurrentLevel: code[20]; Execute: Boolean): Integer
Call this function to link a customer to a new hierarchy level with a relation request
Parameters / Return Value
Level1Code
Code[20]
The customer number to link to the hierarchy
NewLevel
code[20]
The new hierarchy level code to link the customer to
CurrentLevel
code[20]
The current hierarchy level code the customer is linked to
Execute
Boolean
Specifies whether the request should be executed immediately.
Returns
Integer
UpdateCustomerHierarchy
Obsolete
Pending: “HideDialog” is now a global property. (26.0)procedure UpdateCustomerHierarchy(newHideDialog: Boolean)
Parameters / Return Value
- newHideDialog
Boolean
UpdateCustomerHierarchy
procedure UpdateCustomerHierarchy()
This function update all customer hierarchy at today
FillCustomerClusterBuffer
procedure FillCustomerClusterBuffer(var TempCustomerClusterDetail: Record "EOS Customer Cluster Detail" temporary; CustomerClusterHeader: Record "EOS Customer Cluster Header"; StartingDate: Date; EndingDate: Date; SaveValues: Boolean)
This function will create a temporary record of Customer Cluster Detail from a Cluster header and a range of dates. If the parameter “SaveValues” is true, the buffere will be stored.
Parameters / Return Value
TempCustomerClusterDetail
Record "EOS Customer Cluster Detail"
CustomerClusterHeader
Record "EOS Customer Cluster Header"
StartingDate
Date
EndingDate
Date
SaveValues
Boolean
GetVendorHierarchyAtDate
procedure GetVendorHierarchyAtDate(Level1Code: Code[20]; var inTextArray: array[11] of Text; RequestDate: Date; Description: Boolean)
Call this function to populate inTextArray with vendor hierarchy at request date
Parameters / Return Value
Level1Code
Code[20]
The first level of hierarchy that corresponds to vendor no.
inTextArray
Text[]
The array to populate
RequestDate
Date
The calculation date of the hierarchy
Description
Boolean
Set true if you want to get the description in the array
GetVendorHierarchyFieldCaption
procedure GetVendorHierarchyFieldCaption(CaptionExpr: Text[80]): Text[50]
Parameters / Return Value
CaptionExpr
Text[80]
Returns
Text[50]
LinkVendorToHierarchy
Obsolete
Pending: Replaced by a different overload. (26.0)procedure LinkVendorToHierarchy(Level1Code: Code[20]; Level2Code: Code[20])
Parameters / Return Value
Level1Code
Code[20]
Level2Code
Code[20]
LinkVendorToHierarchy
procedure LinkVendorToHierarchy(Level1Code: Code[20]; Level2Code: Code[20]; Execute: Boolean): Integer
Call this function to link a vendor to an hierarchy level with a relation request
Parameters / Return Value
Level1Code
Code[20]
The vendor number to link to the hierarchy
Level2Code
Code[20]
The hierarchy level code to link the vendor to
Execute
Boolean
Specifies whether the request should be executed immediately.
Returns
Integer
LinkVendorToNewHierarchy
Obsolete
Pending: Replaced by a different overload. (26.0)procedure LinkVendorToNewHierarchy(Level1Code: Code[20]; NewLevel: code[20]; CurrentLevel: code[20])
Parameters / Return Value
Level1Code
Code[20]
NewLevel
code[20]
CurrentLevel
code[20]
LinkVendorToNewHierarchy
procedure LinkVendorToNewHierarchy(Level1Code: Code[20]; NewLevel: code[20]; CurrentLevel: code[20]; Execute: Boolean): Integer
Call this function to link a vendor to a new hierarchy level with a relation request
Parameters / Return Value
Level1Code
Code[20]
The vendor number to link to the hierarchy
NewLevel
code[20]
The new hierarchy level code to link the vendor to
CurrentLevel
code[20]
The current hierarchy level code the vendor is linked to
Execute
Boolean
Specifies whether the request should be executed immediately.
Returns
Integer
UpdateVendorHierarchy
Obsolete
Pending: “HideDialog” is now a global property. (26.0)procedure UpdateVendorHierarchy(newHideDialog: Boolean)
Parameters / Return Value
- newHideDialog
Boolean
UpdateVendorHierarchy
procedure UpdateVendorHierarchy()
This function update all vendor hierarchy at today
ChangeHierarchyRelReqStatus
procedure ChangeHierarchyRelReqStatus(inRec: Record "EOS Hierarchy Relation Request"; NewStatus: Enum "EOS Hier. Rel. Request Status"; OldStatus: Enum "EOS Hier. Rel. Request Status"; ShowErr: Boolean): Boolean
Parameters / Return Value
inRec
Record "EOS Hierarchy Relation Request"
NewStatus
Enum "EOS Hier. Rel. Request Status"
OldStatus
Enum "EOS Hier. Rel. Request Status"
ShowErr
Boolean
Returns
Boolean
GetHierarchyLines
procedure GetHierarchyLines(inRec: Record "EOS Hierarchy Relation Request")
Parameters / Return Value
- inRec
Record "EOS Hierarchy Relation Request"
LookupHier
procedure LookupHier(type: option "Item","Customer","Vendor"; level: Integer; PrevLevelCode: code[20]; var value: Text): Boolean
Parameters / Return Value
type
option
"Item"
(0) ,"Customer"
(1) ,"Vendor"
(2)level
Integer
PrevLevelCode
code[20]
value
Text[]
Returns
Boolean
Events
OnGetItemHierarchyLinesOnFilterItem
local procedure OnGetItemHierarchyLinesOnFilterItem(var Item: Record Item; var HierarchyRelReq: Record "EOS Hierarchy Relation Request")
Parameters / Return Value
Item
Record "Item"
HierarchyRelReq
Record "EOS Hierarchy Relation Request"
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.