Info | ||
---|---|---|
| ||
|
Use this event to
Excerpt |
---|
Append to lists of barcodes returned for an item in a semi-colon separated format. |
...
// [Template]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Item Reference Mgt.", 'OnAfterGetBarcodeList', '', true, true)]
local procedure OnAfterGetBarcodeList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Text)
begin
end;
Example:
...
Add Item GTIN to _BarcodeListToReturn
(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.", 'OnAfterGetBarcodeList', '', true, true)]
local procedure MyOnAfterGetBarcodeList(_ItemNo: Code[20]; _VariantCode: Code[10]; var _BarcodeListToReturn: Text)
var
Item: Record Item;
begin
if Item.Get(_ItemNo) and (Item.GTIN <> '') then
if _BarcodeListToReturn = '' then
_BarcodeListToReturn := Item.GTIN
else
_BarcodeListToReturn += ';' + Item.GTIN;
end;
Filter by label (Content by label) showLabels false showSpace false sort title title More examples excerptType simple cql label = "bc" and label = "example" and label = "OnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference"
Version History
Version | Changes |
---|---|
MOB5.2624 | Introduced |