Versions Compared

Key

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

Use this event to

...

You can use the event to override the standard functionality by changing or amending the _BarcodeListToReturn variable.


Template

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

Example: Add Item GTIN to _BarcodeListToReturn

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Toolbox", 'OnAfterGetItemCrossRefList''', true, true)]
procedure OnAfterGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Text)
var
    Item: Record Item;
begin
    if Item.Get(_ItemNo) and (Item.GTIN <> ''then
        if _BarcodeListToReturn = '' then
            _BarcodeListToRetun := Item.GTIN
        else
            _BarcodeListToReturn += ';' + Item.GTIN;
end;

Version History

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

...