1
Add a GetByName procedure to the FieldRef object. It is not uncommon to need to get the FieldRef associated with a given Field Name.

procedure GetByName(RecRef: RecordRef; FieldName: Text; var FldRef: FieldRef)
var
i: Integer;
begin
for i := 1 to RecRef.FieldCount do begin
FldRef := RecRef.FieldIndex(i);
if FldRef.Name = FieldName then begin
exit;
end;
end;
Clear(FldRef);
exit;
end;
Category: Development
STATUS DETAILS
Needs Votes
Ideas 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