Hi,
It is regarding the arrays TableID and No in function CreateDim in table 81 ”Gen. Journal Line”, and all the places where they are referenced.
If multiple extensions hook onto the OnAfterCreateDimTableIDs, then a length of 10 is too short. We need more space.
---
var
TableID: array[10] of Integer;
No: array[10] of Code[20];
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeCreateDim(Rec, IsHandled, CurrFieldNo);
if IsHandled then
exit;
TableID[1] := Type1;
No[1] := No1;
TableID[2] := Type2;
No[2] := No2;
TableID[3] := Type3;
No[3] := No3;
TableID[4] := Type4;
No[4] := No4;
TableID[5] := Type5;
No[5] := No5;
OnAfterCreateDimTableIDs(Rec, CurrFieldNo, TableID, No);
It would be great, if the arrays could be reseized to something larger than 10, like 25 or 50 or something else, but 10 is not big enough.
Best regards
Per
Business Central Team (administrator)
Thank you for reaching out. Your suggestion seems to be an event request, enum request, request for making a function external or general code contribution in for a product. Please create an issue on one of following GitHub repos:
Event Requests, Enum Requests, Requests for Externals, Extensibility enhancements: https://github.com/microsoft/ALAppExtensions/
AL language enhancements and development environment: https://github.com/microsoft/AL
Read more about finding right resource and providing feedback on this blog post:
https://community.dynamics.com/business/b/financials/archive/2018/12/04/find-the-right-resources-and-provide-feedback
Sincerely,
Brian Nielsen
PM, Microsoft