Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 22 Next »

System requirements

  • Business Central 17 with feature "Item Reference" enabled.
  • Business Central 18 (or newer)
  • MOB5.26 (or newer)

Use this event to

Modify filters used for searching Item Reference table.


Used by Unplanned Functions


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 modify filters set by the system.


See also: MobItemCrossReferenceMgt - OnSearchItemCrossRefOnAfterSetFilters


Template

    // [Template]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"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::CodeunitCodeunit::"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;


More examples

There are no items with the selected labels at this time.


Version History

Version

Changes

MOB5.26Introduced
  • No labels