ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 408 DimensionManagement - GetRecDefaultDimID

Open Mike-1984 opened this issue 7 years ago • 0 comments

Could you create an Integration event in Codeunit 408 DimensionManagement, in Function GetRecDefaultDimID

[External] GetRecDefaultDimID(...) : Integer
OnGetRecDefaultDimID(RecVariant,CurrFieldNo,TableID,No,SourceCode,InheritFromDimSetID,InheritFromTableNo);
// >>>>>>>>
DimSetID := GetDefaultDimID(TableID,No,SourceCode,GlobalDim1Code,GlobalDim2Code,InheritFromDimSetID,InheritFromTableNo);
OnAfterGetRecDefaultDimID(DimSetID,GlobalDim1Code,GlobalDim2Code,RecVariant,CurrFieldNo,SourceCode);
EXIT(DimSetID);
// <<<<<<<<

Event signature:

LOCAL [IntegrationEvent] OnAfterGetRecDefaultDimID(VAR DimSetID : Integer;VAR GlobalDim1Code : Code[20];VAR GlobalDim2Code : Code[20];RecVariant : Variant;CurrFieldNo : Integer;SourceCode : Code[20])

For our extension, we need to add extra dimensions after all Default Dimensions have been added by GetDefaultDimID function. (Similar to how Job Task Dimensions are added in UpdateDimensions function in table "Job Journal Line")

Mike-1984 avatar Apr 16 '19 16:04 Mike-1984