Versions Compared

Key

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

Use this event to

...

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

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

...