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 9 Next »

Use this event to

Change or Amend the BarcodeList generated by the GetItemCrossRefList procedure

Used by Planned Functions


Replaced by: MobItemReferenceMgt - OnAfterGetBarcodeList (MOB5.26 or newer)


Description

This event is triggered in procedure GetItemCrossRefList. The procedure returns all barcodes registered for an item in a semi-colon separated list. This list can be interpreted by the mobile device and is sent out in the ItemBarcode element on the order lines.

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.26Deprecated, moved to MobItemReferenceMgt - OnAfterGetBarcodeList
  • No labels