Use this event to
Modify filters used for searching for Item Cross Reference in SearchItemReference procedure (previously named SearchItemCrossRef)
Used by Unplanned Functions
See also: OnSearchItemCrossRefOnAfterSetFilters (MOB5.13-MOB5.22)
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 Cross 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 Cross Reference Mgt.", 'OnSearchItemCrossRefOnAfterSetFilters', '', true, true)]
local procedure OnSearchItemCrossRefOnAfterSetFilters(_ScannedBarcode: Code[20]; var _ItemCrossRef: Record "Item Cross Reference")
begin
end;
Example: Change filter on Cross-Reference Type to also include Customer and Vendor references
// [Example]: Change filter on Cross-Reference Type to also include Customer and Vendor references
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Item Cross Reference Mgt.", 'OnSearchItemCrossRefOnAfterSetFilters', '', true, true)]
local procedure MyOnSearchItemCrossRefOnAfterSetFilters(_ScannedBarcode: Code[20]; var _ItemCrossRef: Record "Item Cross Reference")
begin
_ItemCrossRef.SetFilter("Cross-Reference Type", '%1|%2|%3', _ItemCrossRef."Cross-Reference Type"::"Bar Code", _ItemCrossRef."Cross-Reference Type"::Customer, _ItemCrossRef."Cross-Reference Type"::Vendor);
end;
More examples
There are no items with the selected labels at this time.
Version History
Version | Changes |
---|---|
MOB5.13 | Introduced as OnSearchItemCrossRefOnAfterSetFilters (MOB5.13-MOB5.22) |
MOB5.23 | Moved to new "MOB Item Cross Reference Mgt." |