OnSearchOnBinSearch_OnSetFilterBin
Use this event to
Filter Items to be displayed at the mobile device for SearchType = "BinSearch".
Description
Use this event to modify existing standard Mobile WMS filter for "Location" - or implement new filters based on other fields.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Online Search", 'OnSearchOnBinSearch_OnSetFilterBin', '', true, true)]
local procedure OnSearchOnBinSearch_OnSetFilterBin(var _RequestValues: Record "MOB NS Request Element"; var _Bin: Record Bin)
begin
end;
Example
// [Example] Change standard Mobile WMS filters (from all Bins at Location to empty Bins at Location)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Online Search", 'OnSearchOnBinSearch_OnSetFilterBin', '', true, true)]
local procedure MyOnSearchOnBinSearch_OnSetFilterBin(var _RequestValues: Record "MOB NS Request Element"; var _Bin: Record Bin)
begin
_Bin.SetRange(Empty, true);
end;
More examples
-
How-to: Search - Add new HeaderField to existing SearchType — Add a new custom HeaderField to the existing "magnifying glass" SearchType 'ItemSearch' and show a simple search response.
Version History
Version | Changes |
---|---|
MOB5.43 | Introduced |