KVSKBALabelContent
Events
OnCreatePreview(Record KVSKBALabelContentHeader, Text, Boolean) :
Summary: Called to create a preview of the label and show it on the FastTab.
[IntegrationEvent(false, false)]
local procedure OnCreatePreview(Rec: Record "KVSKBALabelContentHeader" temporary; var newPreviewHtml: Text; var isHandled: Boolean):
Parameters:
Rec: The record of the label content header for which the preview is being created; can be modified by the subscriber.newPreviewHtml: The HTML content of the label preview; can be modified by the subscriber.isHandled: A Boolean value indicating whether the event has been handled by a subscriber (true) or not (false). If set to true, the default behavior of creating the preview will be skipped.
Remarks: This event is raised to allow subscribers to create a preview of the label and show it on the FastTab. Subscribers can modify the Rec parameter to change the label content header record, set the newPreviewHtml parameter to the desired HTML content for the preview, and set isHandled to true to prevent the default behavior from executing.
OnSetLabelPreviewVisible(Boolean, Boolean) :
Summary: Called to set the visibility of the label preview on the page.
[IntegrationEvent(false, false)]
local procedure OnSetLabelPreviewVisible(var labelPreviewVisible: Boolean; var isHandled: Boolean):
Parameters:
labelPreviewVisible: A Boolean value indicating whether the label preview should be visible (true) or hidden (false).isHandled: A Boolean value indicating whether the event has been handled by a subscriber (true) or not (false). If set to true, the default behavior of setting the visibility will be skipped.
Remarks: This event is raised to allow subscribers to control the visibility of the label preview on the page. Subscribers can set the labelPreviewVisible parameter to true or false to show or hide the preview, and can set isHandled to true to prevent the default behavior from executing.