Versions Compared

Key

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

Use this event to

Excerpt

Filter Bin Content to be displayed at the mobile device for "LocateItem".

Description

This event affects locations with Location."Bin Mandatory" = true.

...

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnLocateItem_OnSetFilterBinContent''', true, true)]
    local procedure OnLookupOnLocateItem_OnSetFilterBinContent(var _RequestValues: Record "MOB NS Request Element"; var _BinContent: Record "Bin Content")
    begin
    end;


Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnLocateItem_OnSetFilterBinContent''', true, true)]
    local procedure MyOnLookupOnLocateItem_OnSetFilterBinContent(var _RequestValues: Record "MOB NS Request Element"; var _BinContent: Record "Bin Content")
    var
        MyCustomShowQuantityText: Text;
    begin
        MyCustomShowQuantityText := _RequestValues.GetValue('MyCustomShowQuantityField');   // New custom field in headerconfiguration used by the lookup page
        if MyCustomShowQuantityText = 'Only with inventory' then
            _BinContent.SetFilter(Quantity, '>=0')// Include fixed bins with no current inventory on hand Include only fixed bins with inventory on hand
    end;


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

...

Version

Changes

MOB5.19Introduced
MOB5.21Added parameter _RequestValues