...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Use this event to
Excerpt |
---|
Change or Amend the BarcodeList generated by the GetItemCrossRefList procedure Used by Planned Functions |
Replaced by: MobItemReferenceMgt - OnAfterGetBarcodeList (MOB5.24 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 _BarcodeList BarcodeListToReturn variable.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnAfterGetItemCrossRefList', '', true, true)]
procedure OnAfterGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListBarcodeListToReturn: Text)
begin
end;
Example: Add Item GTIN to _
...
BarcodeListToReturn
(note: Searching for GTIN is a standard feature since MOB5.24 an no longer needs a customization in newer versions)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnAfterGetItemCrossRefList', '', true, true)]
procedure MyOnAfterGetItemCrossRefList OnAfterGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListBarcodeListToReturn: Text)
var
Item: Record Item;
begin
if Item.Get(_ItemNo) and (Item.GTIN <> '') then
if _BarcodeList BarcodeListToReturn = '' then
_BarcodeListBarcodeListToRetun := Item.GTIN
else
_BarcodeListBarcodeListToReturn += ';' + Item.GTIN;
end;
Version History
Version | Changes |
---|---|
MOB5.13 | Introduced |
MOB5.24 | Deprecated, moved to MobItemReferenceMgt - OnAfterGetBarcodeList |