[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAddHeaderConfigurations', '', true, true)] localprocedure OnGetReferenceData_OnAddHeaderConfigurations(var _HeaderFields: Record "MOB HeaderField Element") begin with _HeaderFields dobegin InitConfigurationKey('MyReceiptFilters'); // New Header name to use instead of "ReceiveOrderFilters"
// Add standard location filter - this is already handled in standard Receive Create_ListField_Location(1);
// Add our new custom filter - this is declared fully. It is a Text field. Create_TextField(2, 'DocumentNoFilter'); Set_label('Doc. filter label:'); Set_clearOnClear(true); Set_acceptBarcode(true); Set_length(20); Set_optional(true); end; end;
Tip
Note how helper-functions like Add_Location and Add_TextValue are used