Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

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

...

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnIncludeWarehouseEntry', '', true, true)]
    localprocedure 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)]
    localprocedure MyOnLookupOnHistory_OnIncludeWarehouseEntry(_WhseEntry: Record"Warehouse Entry"; var _IncludeInLookup: Boolean)
    begin
        if _WhseEntry.Quantity >1then
            _IncludeInLookup:=false;
    end;

...

Version History

Version

Changes

MOB5.4546Introduced