...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Info | ||
---|---|---|
| ||
|
Use this event to
Excerpt |
---|
Override lists of barcodes returned for an item in a semi-colon separated format. |
...
// [Template]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Item Reference Mgt.", 'OnBeforeGetBarcodeList', '', true, true)]
local procedure OnBeforeGetBarcodeList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Text; var _IsHandled: Boolean)
begin
end;
Example: Add Item GTIN to _BarcodeList
(note: Searching for GTIN is a standard feature since MOB5.24 an no longer needs a customization in newer versions)
// [Example]: Add Item GTIN to _BarcodeList
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Item Reference Mgt.", 'OnBeforeGetBarcodeList', '', true, true)]
local procedure MyOnBeforeGetBarcodeList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Text; var _IsHandled: Boolean)
var
Item: Record Item;
begin
// Intentionally do not exit here if _IsHandled but always add GTIN to BarcodeList
if Item.Get(_ItemNo) then
if _BarcodeListToReturn = '' then
_BarcodeListToReturn := Item.GTIN
else
_BarcodeListToReturn += ';' + Item.GTIN;
_IsHandled := true;
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Version History
Version | Changes |
---|---|
MOB5.2324 | Introduced |