ALAppExtensions
ALAppExtensions copied to clipboard
[extensibility-bug] procedure FillBufferInternal Table "Option Lookup Buffer"
For the enums the function TypeHelper.GetNumberOfOptions is called. This function returns the number but not the actual enum values. This number will be used as key, but it is not possible to use the function IncludeOption.
local procedure FillBufferInternal(TableNo: Integer; FieldNo: Integer; RelationFieldNo: Integer; LookupType: Option)
var
TypeHelper: Codeunit "Type Helper";
RecRef: RecordRef;
RelatedRecRef: RecordRef;
FieldRef: FieldRef;
FieldRefRelation: FieldRef;
OptionIndex: Integer;
RelatedTableNo: Integer;
begin
RecRef.Open(TableNo);
FieldRef := RecRef.Field(FieldNo);
for OptionIndex := 0 to TypeHelper.GetNumberOfOptions(FieldRef.OptionMembers) do begin
FieldRef.Value(OptionIndex);
if IncludeOption(LookupType, OptionIndex) then begin
Please check latest code, this is already updated.
Yes, the build 17.0.15215.0 contains different code than the build 17.0.14964.0. Thanks!