Versions Compared

Key

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

Use this event to

Excerpt

Override GetItemCrossRefList procedure

Used by Planned Functions


Replaced by: MobItemReferenceMgt - OnBeforeSearchItemReferenceOnBeforeGetBarcodeList (MOB5.23 or newer)


Description

...

You can use the event to override the standard functionality by filling the _BarcodeListToReturn variable and setting the parameter _Handled to true.


Template

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList''', true, true)]
procedure OnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Textvar _IsHandled: Boolean)
begin
end;

Example

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList''', true, true)]
procedure OnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Textvar _IsHandled: Boolean)
var
    Item: Record Item;
begin
    if Item.Get(_ItemNothen
        if _BarcodeListToReturn = '' then
            _BarcodeListToReturn := Item.GTIN
        else
            _BarcodeListToReturn += Item.GTIN;

    _IsHandled := true;
end;

Version History

VersionChanges
MOB5.13Introduced
MOB5.23Deprecated, moved to MobItemReferenceMgt - OnBeforeGetBarcodeList