Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

...

(Procedure was in previous version named CheckCrossRef).
Used by Unplanned Functions


Replaced by: MobItemCrossReferenceMgt - OnSearchItemCrossRefOnAfterSetFilters (MOB5.23 or newer)


Description

...

You can use the event to change or amend the filters set by the Mobile WMS App.

Template

[EventSubscriber(ObjectType::CodeunitCodeunit::"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::CodeunitCodeunit::"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

VersionChanges
MOB5.13Introduced
MOB5.23Deprecated, moved to MobItemCrossReferenceMgt - OnSearchItemCrossRefOnAfterSetFilters