Versions Compared

Key

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

Use this event to

Add filter conditions for Item Ledger Entry that cannot be solved by OnSetFilter- event (Location Not using Bins).

...

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnIncludeItemLedgerEntry', '', true, true)]
    localprocedure OnLookupOnHistory_OnIncludeItemLedgerEntry(_ItemLedgerEntry: Record"Item Ledger 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_OnIncludeItemLedgerEntry', '', true, true)]
    localprocedure MyOnLookupOnHistory_OnIncludeItemLedgerEntry(_ItemLedgerEntry: Record"Item Ledger Entry"; var _IncludeInLookup: Boolean)
    begin
        if _ItemLedgerEntry.Quantity >1then
            _IncludeInLookup:=false;
    end;



Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "oninclude" and label = "example"



Version History

Version

Changes

MOB5.45Introduced

...