KVSKBADocumentHeadingBuffer#
Fields#
Name | Type | Note |
---|---|---|
Doc Scope | Enum (KVSKBADocumentScope) | |
Doc Type | Enum (KVSKBADocumentType) | |
No. | Code[20] | |
Doc. No. Occurrence | Integer | |
Version No. | Integer | |
Entry No. | Integer | |
Heading Type | Option | OptionMembers: HeadingRight,HeadingLine1,HeadingLine2,HeadingLine3,HeadingLine4,HeadingLine5 |
Column Value 1 | Text[255] | |
Column Format 1 | Text[100] | |
Column Value 2 | Text[255] | |
Column Format 2 | Text[100] | |
Column Value 3 | Text[255] | |
Column Format 3 | Text[100] | |
Column Value 4 | Text[255] | |
Column Format 4 | Text[100] | |
Column Value 5 | Text[255] | |
Column Format 5 | Text[100] |
Procedures#
GetFieldData() : Text#
procedure GetFieldData(): Text
AddFieldValue(Text, Text) :#
procedure AddFieldValue(LabelText: Text; ValueText: Text):
GetFieldValue(Text) : Text#
procedure GetFieldValue(LabelText: Text): Text
GetTableType() : Enum#
Summary: Determines the document table type based on the heading type of the current record.
procedure GetTableType(): Enum KVSKBADocumentTableType
Returns: The corresponding KVSKBADocumentTableType enum value for the heading type.
Remarks: This procedure maps the "Heading Type" option of the current record to a specific document table type (KVSKBADocumentTableType). It first raises the OnBeforeGetTableType integration event, allowing subscribers to override the default behavior. If not handled externally, the procedure uses a case statement to map each heading type (HeadingRight, HeadingLine1, ..., HeadingLine5) to its corresponding table type. If the heading type does not match any known value, HeadingRight is returned as the default. This mapping is used to control layout and formatting logic for document headings in reports and printouts.
GetLineType() : Enum#
procedure GetLineType(): Enum KVSKBADocumentLineType
FormatDefault() : Text[100]#
procedure FormatDefault(): Text[100]
FormatNormal() : Text[100]#
procedure FormatNormal(): Text[100]
FormatBold() : Text[100]#
procedure FormatBold(): Text[100]
FormatNormalRight() : Text[100]#
procedure FormatNormalRight(): Text[100]
FormatBoldRight() : Text[100]#
procedure FormatBoldRight(): Text[100]
FormatNormalWhiteSmoke() : Text[100]#
procedure FormatNormalWhiteSmoke(): Text[100]
FormatBoldWhiteSmoke() : Text[100]#
procedure FormatBoldWhiteSmoke(): Text[100]
Events#
OnBeforeGetTableType(Record KVSKBADocumentHeadingBuffer, Enum KVSKBADocumentTableType, Boolean) :#
Summary: Integration event: Allows subscribers to override the default table type mapping for a document heading.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetTableType(DocumentHeadingBuffer: Record "KVSKBADocumentHeadingBuffer"; var DocumentTableType: Enum "KVSKBADocumentTableType"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSKBADocumentHeadingBuffer", 'OnBeforeGetTableType', '', false, false)]
local procedure DoSomethingOnBeforeGetTableType(DocumentHeadingBuffer: Record "KVSKBADocumentHeadingBuffer"; var DocumentTableType: Enum "KVSKBADocumentTableType"; var IsHandled: Boolean)
begin
end;
Parameters:
DocumentHeadingBuffer
: The current KVSKBADocumentHeadingBuffer record.DocumentTableType
: The document table type to be set by the subscriber.IsHandled
: Set to true by the subscriber to indicate that custom logic was applied and default processing should be skipped.
Remarks: This integration event is raised before the standard logic in GetTableType is executed. Subscribers can use this event to provide custom mapping from heading type to document table type, for example to support additional heading types or implement company-specific layout rules. If a subscriber sets IsHandled to true, the default mapping logic is bypassed and the value assigned to DocumentTableType by the subscriber is used instead. This enables extensibility for report and document layout scenarios without modifying the base table logic.