Fix dimension-management-wiring.md: ValidateShortcutDimCode and CreateDim

do not exist on the current DimensionManagement codeunit

Verified against microsoft/BCApps: the real master-table validation
procedure is ValidateDimValueCode (or ValidateShortcutDimValues when a
DimSetID is also needed), and the real document-side inheritance
procedure is GetDefaultDimID, not CreateDim. Caught from Jesper
Schulz-Wedde's review thread, which had been partially hidden by
GitHub's comment folding.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Michael Dieringer 2026-09-07 20:55:45 +02:00
parent cc7c1f2ee0
commit fa3d04c56c
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ table 50100 "Course"
var
DimMgt: Codeunit DimensionManagement;
begin
DimMgt.ValidateShortcutDimCode(1, "Global Dimension 1 Code");
DimMgt.ValidateDimValueCode(1, "Global Dimension 1 Code");
DimMgt.SaveDefaultDim(Database::Course, "No.", FieldNo("Global Dimension 1 Code"), "Global Dimension 1 Code");
end;
}