-
Notifications
You must be signed in to change notification settings - Fork 688
Closed
Labels
SCMGitHub request for SCM areaGitHub request for SCM areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update
Description
Why do you need this change?
We need to restore some previous manually assigned custom dimensions after the new creation of the dimensions from the default dimensions.
Describe the request
Could you please add the event OnAfterCreateDim similiar to the event in the line tables (e.g. sales line, transfer line)?
procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
var
SourceCodeSetup: Record "Source Code Setup";
begin
SourceCodeSetup.Get();
"Shortcut Dimension 1 Code" := '';
"Shortcut Dimension 2 Code" := '';
GetInvtDocHeader();
"Dimension Set ID" :=
DimMgt.GetDefaultDimID(
DefaultDimSource, "Source Code", "Shortcut Dimension 1 Code", "Shortcut Dimension 2 Code",
InvtDocHeader."Dimension Set ID", DATABASE::"Invt. Document Header");
DimMgt.UpdateGlobalDimFromDimSetID("Dimension Set ID", "Shortcut Dimension 1 Code", "Shortcut Dimension 2 Code");
//>EVENT
OnAfterCreateDim(Rec, CurrFieldNo, xRec, DefaultDimSource);
//<EVENT
end;[IntegrationEvent(false, false)]
local procedure OnAfterCreateDim(var InvtDocumentLine: Record "Invt. Document Line"; CurrentFieldNo: Integer; xInvtDocumentLine: Record "Invt. Document Line"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]);
begin
end;Internal work item: AB#610750
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SCMGitHub request for SCM areaGitHub request for SCM areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update