Use this event to
...
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnLocateItem_OnSetFilterBinContent', '', true, true)]
local procedure OnLookupOnLocateItem_OnSetFilterBinContent(var _BinContent: Record "Bin Content"; var _RequestValues: Record "MOB NS Request Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnLocateItem_OnSetFilterBinContent', '', true, true)]
local procedure MyOnLookupOnLocateItem_OnSetFilterBinContent(var _BinContent: Record "Bin Content"; var _RequestValues: Record "MOB NS Request Element")
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) showLabels false showSpace false sort title title More examples excerptType simple cql label = "bc" and label = "lookup" and label = "locateitem" and label = "onsetfilter" and label = "example"
...
Version | Changes |
---|---|
MOB5.19 | Introduced |
MOB5.21 | Added parameter _RequestValues |