Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description
Excerpt |
---|
How to modify header in order to Filter or Input data |
Headers are used by both Planned and Unplanned functions.
See also: Reference Data
Creating new functionality
Creating a new header, is only needed when creating entirely new functionality.
Perhaps you looking for filtering standard headers?
How-to: Filter OrdersHow-to: Filter Orders - ComplexPerhaps you would like to modify an standard header field?
What is a Header
Step 1 - Define Header and Filters
Use the OnGetReferenceData_OnAddHeaderConfigurations to create your new header.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAddHeaderConfigurations', '', true, true)]
local procedure OnGetReferenceData_OnAddHeaderConfigurations(var _HeaderFields: Record "MOB HeaderField Element")
begin
with _HeaderFields do begin
InitConfigurationKey('MyReceiptFilters'); // New Header name to use instead of "ReceiveOrderFilters"
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
Modify headers used in Planned functions
LINK TIL CASE
Modify headers used in Unplanned functions
TODO
Press the filter icon to show the header filter
Image Removed
Receive Order filter
Image Removed
Put-away Order filter
Image Removed
Pick Order Image Added
Successfully added a new filter