KVSKBASrvDocumentText
Fields
| Name | Type | Note |
|---|---|---|
| Document Type | Enum Service Document Type | |
| Document No. | Code[20] | |
| Document Table | Enum (KVSKBAServiceDocumentTable) | |
| Document Line No. | Integer | |
| Position | Enum (KVSKBATextPosition) | |
| Line No. | Integer | |
| Text | Text[130] | |
| Service Quote Print | Boolean | |
| Service Order Print | Boolean | |
| Service Invoice Print | Boolean | |
| Service Cr. Memo Print | Boolean | |
| Service Shipment Print | Boolean | |
| Service Item Worksheet Print | Boolean | |
| Separator | Enum (KVSKBASeparator) | |
| Formatted Text | Blob | |
| Starting Date | Date | |
| Ending Date | Date | |
| Order Type | Code[10] |
Procedures
TransferFieldsFromExtTextLine(Record Extended Text Line) :
Summary: Transfers the field values of the given Extended Text Line record to the current record.
procedure TransferFieldsFromExtTextLine(ExtendedTextLine: Record "Extended Text Line"):
Parameters:
ExtendedTextLine: The Extended Text Line record from which the field values will be transferred.
Remarks: The field values that will be transferred include the text, print options, separator, and formatted text.
GetBlobText() : Text
Summary: Gets the text stored in the "Formatted Text" field as a string.
procedure GetBlobText(): Text
Returns: The text stored in the "Formatted Text" field.
Remarks: The method reads the blob field "Formatted Text" and returns its content as a string. It uses UTF-8 encoding to read the blob data.
SetBlobText(Text) :
Summary: Sets the text stored in the "Formatted Text" field.
procedure SetBlobText(WriteText: Text):
Parameters:
WriteText: The text to be stored in the "Formatted Text" field.
Remarks: The method writes the given text to the blob field "Formatted Text" using UTF-8 encoding.
GetPlainBlobText() : Text
Summary: Gets the plain text stored in the "Formatted Text" field.
procedure GetPlainBlobText(): Text
Returns: The plain text stored in the "Formatted Text" field.
Remarks: The method uses the KVSKBAEditorMgt codeunit to convert the formatted text to plain text.
Events
OnBeforeTransferFieldsFromExtTextLine(Record KVSKBASrvDocumentText, Record Extended Text Line) :
Summary: Event raised before transfer fields from extended text line.
[IntegrationEvent(false, false)]
local procedure OnBeforeTransferFieldsFromExtTextLine(var KVSKBASrvDocumentText: Record "KVSKBASrvDocumentText"; var ExtendedTextLine: Record "Extended Text Line"):
Parameters:
KVSKBASrvDocumentText: System.Object[]ExtendedTextLine: System.Object[]
Remarks: The event subscribers can modify the field values of the current record before the default logic in TransferFieldsFromExtTextLine method runs. If the subscribers set the field values, those values will be used in the default logic.
OnAfterTransferFieldsFromExtTextLine(Record KVSKBASrvDocumentText, Record Extended Text Line) :
Summary: Event raised after transfer fields from extended text line.
[IntegrationEvent(false, false)]
local procedure OnAfterTransferFieldsFromExtTextLine(var KVSKBASrvDocumentText: Record "KVSKBASrvDocumentText"; ExtendedTextLine: Record "Extended Text Line"):
Parameters:
KVSKBASrvDocumentText: System.Object[]ExtendedTextLine: System.Object[]
Remarks: The event subscribers can perform additional actions after the default logic in TransferFieldsFromExtTextLine method runs.