1
procedure GetByTableName(TableName: Text; var RecRef: RecordRef)
var
// Would have preferred Table Information, but it is OnPrem only.
TableInformation: Record "Table Metadata";
begin
Clear(TableInformation);
TableInformation.Reset();
TableInformation.SetRange(Name, TableName);
if TableInformation.FindFirst() then;
RecRef.Close();
RecRef.Open(TableInformation.ID);
end;
procedure GetByTableNumber(TableNumber: Integer; var RecRef: RecordRef)
begin
RecRef.Close();
RecRef.Open(TableNumber);
end;
var
// Would have preferred Table Information, but it is OnPrem only.
TableInformation: Record "Table Metadata";
begin
Clear(TableInformation);
TableInformation.Reset();
TableInformation.SetRange(Name, TableName);
if TableInformation.FindFirst() then;
RecRef.Close();
RecRef.Open(TableInformation.ID);
end;
procedure GetByTableNumber(TableNumber: Integer; var RecRef: RecordRef)
begin
RecRef.Close();
RecRef.Open(TableNumber);
end;
STATUS DETAILS
Needs Votes
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future.
Best regards,
Business Central Team