...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Use this event to
Excerpt |
---|
Override GetItemCrossRefList procedure Used by Planned Functions |
Replaced by: MobItemReferenceMgt - OnBeforeGetBarcodeList (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 filling the _BarcodeList BarcodeListToReturn variable and setting the parameter _Handled to true.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList', '', true, true)]
procedure OnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListBarcodeListToReturn: Text; var _HandledIsHandled: Boolean)
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList', '', true, true)]
procedure MyOnBeforeGetItemCrossRefList OnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListBarcodeListToReturn: Text; var _HandledIsHandled: Boolean)
var
ItemItem: Record Item;
begin
if if Item.Get(_ItemNo) then
if _BarcodeListToReturn = '' then
_BarcodeListBarcodeListToReturn := Item.GTIN;
else
_BarcodeListToReturn += Item.GTIN;
_HandledIsHandled := true;
end;
Version History
Version | Changes |
---|---|
MOB5.13 | Introduced |
MOB5.24 | Deprecated, moved to MobItemReferenceMgt - OnBeforeGetBarcodeList |