Use this event to
Excerpt |
---|
Override GetItemCrossRefList procedure. |
...
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::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList', '', true, true)]
procedure OnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Text; var _IsHandled: Boolean)
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList', '', true, true)]
procedure MyOnBeforeGetItemCrossRefList OnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Text; var _IsHandled: Boolean)
var
Item: Record Item;
begin
if Item.Get(_ItemNo) then
if _BarcodeListToReturn = '' then
_BarcodeListToReturn := Item.GTIN
else
_BarcodeListToReturn += Item.GTIN;
_IsHandled := true;
end;
Version History
Version | Changes |
---|---|
MOB5.13 | Introduced |
...