-
Notifications
You must be signed in to change notification settings - Fork 688
Description
Why do you need this change?
Hello,
On behalf of 4PS, I'd like to request a change in the ShowDimensions procedures in the:
Table 11401 "CBG Statement Line" procedure ShowDimensions
Table 11400 "CBG Statement" procedure ShowDimensions
Table 11307 "G/L Entry Application Buffer" procedure ShowDimensions
Table 11000000 "Proposal Line" procedure ShowDimensions
Table 11000000 "Proposal Line" procedure ShowHeaderDimensions
There EditDimensionSet procedure is called without a Rec usage. We would like to have it improved by adding the Rec inside of the procedure call to use
procedure EditDimensionSet(RecVariant: Variant; DimSetID: Integer; NewCaption: Text[250]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]): Integer
instead of
procedure EditDimensionSet(DimSetID: Integer; NewCaption: Text[250]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]): Integer
Of codeunit 408 DimensionManagement.
Example from one of the objects:
Previous procedure:
procedure ShowDimensions()
begin
"Dimension Set ID" := DimManagement.EditDimensionSet(
"Dimension Set ID", StrSubstNo('%1 %2', "Journal Template Name", "No."),
"Shortcut Dimension 1 Code", "Shortcut Dimension 2 Code");
end;
New procedure:
procedure ShowDimensions()
begin
"Dimension Set ID" := DimManagement.EditDimensionSet(
Rec, "Dimension Set ID", StrSubstNo('%1 %2', "Journal Template Name", "No."), <--- Rec added
"Shortcut Dimension 1 Code", "Shortcut Dimension 2 Code");
end;
Describe the request
When calling the EditDimensionSet, in 4PS solution we have additional code that needs to happen before the Page "Edit Dimension Set Entries" is opened. In order to add additional functionality, we need to know from which record the procedure was called. Adding Rec to the specified procedure calls would allow us to implement the needed changes without requesting any additional events.
Thank you!
Internal work item: AB#622691