Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

Excerpt

Override GetItemCrossRefList procedure.

...

You can use the 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 _HandledIsHandledBoolean)
begin
end;

Example

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Toolbox", 'OnBeforeGetItemCrossRefList''', true, true)]
procedure MyOnBeforeGetItemCrossRefList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeList: Textvar _HandledIsHandledBoolean)
var
     ItemItemRecord Item;
begin
     if  if Item.Get(_ItemNo) then
        if _BarcodeList = '' then
            _BarcodeList := Item.GTIN;
        else
            _BarcodeList += Item.GTIN;

    _HandledIsHandled := true;
end;

Version History

VersionChanges
MOB5.13Introduced

...