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

Use this event to

Override GetItemCrossRefList procedure.


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 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 MyOnBeforeGetItemCrossRefList(_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
_BarcodeListToReturn
  • No labels