KVSMTCConfigTemplateMgmtItem
Events
OnBeforeCreateItemFromTemplate(Record Item, Boolean, Boolean) :
Summary: Event raised before creating an item from a configuration template. Subscribers can set IsHandled to true and return a result to bypass the default creation logic.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateItemFromTemplate(var Item: Record "Item"; var Result: Boolean; var IsHandled: Boolean):
Parameters:
Item: The item record being created.Result: The result value to return if IsHandled is set to true.IsHandled: Set to true to indicate that the event has been handled and the default logic should be skipped.
OnCreateItemFromTemplateOnBeforeSelectItemTemplate(Record Item, Record Config. Template Header) :
Summary: Event raised before the item template selection dialog is shown during item creation. Subscribers can modify the filtered set of available configuration templates.
[IntegrationEvent(false, false)]
local procedure OnCreateItemFromTemplateOnBeforeSelectItemTemplate(Item: Record "Item"; var ConfigTemplateHeader: Record "Config. Template Header"):
Parameters:
Item: The item record being created.ConfigTemplateHeader: The configuration template header record with the current filter applied.
OnAfterInsertItemFromTemplate(Record Config. Template Header, Record Item) :
Summary: Event raised after an item has been inserted from a configuration template. Subscribers can modify the item or perform additional processing after the template has been applied.
[IntegrationEvent(false, false)]
local procedure OnAfterInsertItemFromTemplate(var ConfigTemplateHeader: Record "Config. Template Header"; var Item: Record "Item"):
Parameters:
ConfigTemplateHeader: The configuration template header that was applied to the item.Item: The item record that was created and populated from the template.
OnBeforeInitItemNo(Record Item, Record Config. Template Header, Boolean) :
Summary: Event raised before the item number is initialized during template-based item creation. Subscribers can set IsHandled to true to provide a custom item number initialization.
[IntegrationEvent(false, false)]
local procedure OnBeforeInitItemNo(var Item: Record "Item"; ConfigTemplateHeader: Record "Config. Template Header"; var IsHandled: Boolean):
Parameters:
Item: The item record for which the number is being initialized.ConfigTemplateHeader: The configuration template header used for the item creation.IsHandled: Set to true to indicate that the event has been handled and the default initialization should be skipped.