Use this event to
Override GetItemCrossRefList procedure
Description
This event is triggered in procedure GetItemCrossRefList.
You can use this event to override the standard functionality by filling the _BarcodeList 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 _BarcodeList: Text; var _Handled: Boolean)
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList', '', true, true)]
procedure MyOnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeList: Text; var _Handled: Boolean)
var
Item: Record Item;
begin
if Item.Get(_ItemNo) then
_BarcodeList := Item.GTIN;
_Handled := true;
end;
Version History
Version | Changes |
---|---|
MOB5.13 | Introduced |