Versions Compared

Key

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

Use this event to

Excerpt

Override GetItemCrossRefList procedure.

...

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 this the event to override the standard functionality by filling the _BarcodeList 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 _BarcodeList: Textvar _Handled: Boolean)
begin
end;

Example

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList''', true, true)]
procedure MyOnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeList: Textvar _Handled: Boolean)
var
     Item: Record Item;
begin
     if Item.Get(_ItemNothen
          _BarcodeList := Item.GTIN;
 
     _Handled
 := true;
end;


Version History

VersionChanges
MOB5.13Introduced

...