Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Excerpt

Change or amend filter set on ItemCrossRef record in SearchItemCrossRef procedure.

Used by Unplanned Functions

...


Info
titleObsolete

This event can no longer be used in BC19 or newer. 

Replaced by: MobItemReferenceMgt - OnSearchItemReferenceOnAfterSetFilters

Use this event to

Excerpt

Modify filters used for searching for Item Cross Reference in SearchItemReference procedure

 (previously named SearchItemCrossRef)

Used by Unplanned Functions


In MOB5.24 (or newer) and BC18 (or older): use this event.
In MOB5.24 (or newer) and BC19 (or newer): use event MobItemReferenceMgt - OnSearchItemReferenceOnAfterSetFilters

In MOB5.23 (or older) use event OnSearchItemCrossRefOnAfterSetFilters (MOB5.13-MOB5.2223)


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::CodeunitCodeunit::"MOB WMS ToolboxMOB 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::CodeunitCodeunit::"MOB WMS ToolboxMOB Item Cross Reference Mgt.", 'OnSearchItemCrossRefOnAfterSetFilters''', true, true)]
    local procedure OnSearchItemCrossRefOnAfterSetFilters 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;

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "example" and label = "OnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference"

Version History

VersionChanges
MOB5.13Introduced as OnSearchItemCrossRefOnAfterSetFilters (MOB5.13-MOB5.2223)
MOB5.2324Moved to new "MOB WMS Item Cross Reference Mgt."

...