Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Description

How to create a new header for Planned functions, in order to filter which documents to include (or exclude).

What is a Header


Creating new functionality

Creating a new header, is only needed when creating entirely new functionality.

Perhaps you looking for filtering standard headers?

Perhaps you would like to modify an standard header field?


Step 1 - Define Header and Filters 

Use the OnGetReferenceData_OnAddHeaderConfigurations to create your new header.


    [EventSubscriber(ObjectType::CodeunitCodeunit::"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"



            // 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
  • There are many more to choose from


Press the filter icon to show the header filter

Receive Order filter

Put-away Order filter


Pick Order filter


  • No labels