...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Use this event to
Excerpt |
---|
Modify filters used for searching for Item Reference in SearchItemReference procedure. |
...
Requires Business Central 17 (or newer) with feature "Item Reference" enabled.
Description
This event is triggered in procedure SearchItemCrossRef. The procedure is used to find and return Item No. and Variant Code from a scanned Barcode by searching the Item Reference table.
You can use the event to change or amend the filters set by the Mobile WMS App.
Template
// [Template]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Item Reference Mgt.", 'OnSearchItemReferenceOnAfterSetFilters', '', true, true)]
local procedure OnSearchItemReferenceOnAfterSetFilters(_ScannedBarcode: Code[50]; var _ItemReference: Record "Item Reference")
begin
end;
Example
// [Example]: Change filter on Cross-Reference Type to also include Customer and Vendor references
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Item Reference Mgt.", 'OnSearchItemReferenceOnAfterSetFilters', '', true, true)]
local procedure MyOnSearchItemReferenceOnAfterSetFilters(_ScannedBarcode: Code[50]; var _ItemReference: Record "Item Reference")
begin
_ItemReference.SetFilter("Reference Type", '%1|%2|%3', _ItemReference."Reference Type"::"Bar Code", _ItemReference."Reference Type"::Customer, _ItemReference."Reference Type"::Vendor);
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Version History
Version | Changes |
---|---|
MOB5.23 | Introduced |
...