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 2 Current »

Use this event to

Add filter conditions for Warehouse Entries that cannot be solved by OnSetFilter- event.

Description

This event affects locations with Location."Bin Mandatory" = true.
The entries can be excluded from the response by setting the parameter _IncludeInLookup to false.


Template    

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnIncludeWarehouseEntry', '', true, true)]
    local procedure OnLookupOnHistory_OnIncludeWarehouseEntry(_WhseEntry: Record "Warehouse Entry"; var _IncludeInLookup: Boolean)
    begin
    end;


Example

    // [Example]: Exclude from response if Quantity is more than 1.

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnIncludeWarehouseEntry', '', true, true)]
    local procedure MyOnLookupOnHistory_OnIncludeWarehouseEntry(_WhseEntry: Record "Warehouse Entry"; var _IncludeInLookup: Boolean)
    begin
        if _WhseEntry.Quantity > 1 then
            _IncludeInLookup := false;
    end;


More examples




Version History

Version

Changes

MOB5.45Introduced
  • No labels