...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Use this event to
Excerpt |
---|
Change or amend filter set on ItemCrossRef record in SearchItemCrossRef procedure. |
...
Replaced by: MobItemCrossReferenceMgt - OnSearchItemCrossRefOnAfterSetFilters (MOB5.23 26 or newer)
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
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnSearchItemCrossRefOnAfterSetFilters', '', true, true)]
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
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnSearchItemCrossRefOnAfterSetFilters', '', true, true)]
procedure OnSearchItemCrossRefOnAfterSetFilters(_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;
Version History
Version | Changes |
---|---|
MOB5.13 | Introduced |
MOB5.2326 | Deprecated, moved to MobItemCrossReferenceMgt - OnSearchItemCrossRefOnAfterSetFilters |
...