OnLookupOnHistory_OnAfterSetFromItemLedgerEntry

Use this event to

Modify response elements to be displayed on the mobile device. (Location Not using Bins)

Description

This event only affects entries with locations with "Bin Mandatory" = false.
It modifies/ adds response elements to the History Lookup function.



Template    

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnAfterSetFromItemLedgerEntry', '', true, true)]
    local procedure OnLookupOnHistory_OnAfterSetFromItemLedgerEntry(var _LookupResponseElement: Record "MOB NS WhseInquery Element"; _ItemLedgerEntry: Record "Item Ledger Entry")
    begin
    end;


Example

    // [Example]: Modify the DisplayLine1 to show the if the entry was registered on the mobile device.

   [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnAfterSetFromItemLedgerEntry', '', true, true)]
    local procedure MyOnLookupOnHistory_OnAfterSetFromItemLedgerEntry(var _LookupResponseElement: Record "MOB NS WhseInquery Element"; _ItemLedgerEntry: Record "Item Ledger Entry")
    begin
        _LookupResponseElement.Set_DisplayLine1(Format(_ItemLedgerEntry.MOBRegisteredOnMobile));
    end;


More examples


Version History

Version

Changes

MOB5.46Introduced