Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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::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.11Introduced
  • No labels