Table of Contents

KVSKBASalesDocumentText

Fields

Name Type Note
Document Type Enum Sales Document Type
Document No. Code[20]
Document Line No. Integer
Position Enum (KVSKBATextPosition)
Line No. Integer
Text Text[130]
Quote Print Boolean
Order Print Boolean
Posted Invoice Print Boolean
Posted Credit Memo Print Boolean
Blanket Order Print Boolean
Return Order Print Boolean
Posted Shipment Print Boolean
Posted Return Receipt Boolean
Separator Enum (KVSKBASeparator)
Formatted Text Blob
Starting Date Date
Ending Date Date
Prepayment Invoice Boolean
Prepayment Credit Memo Boolean
Order Type Code[10]

Procedures

TransferFieldsFromExtTextLine(Record Extended Text Line) :

Summary: Transfers fields from an extended text line to the sales document text record.

procedure TransferFieldsFromExtTextLine(ExtendedTextLine: Record "Extended Text Line"): 

Parameters:

  • ExtendedTextLine: The extended text line record.

Remarks: This method is used to transfer the text and related fields from the extended text line to the sales document text record. It also triggers events before and after the transfer for extensibility.

GetBlobText() : Text

Summary: Gets the formatted text from the blob field and returns it as a string.

procedure GetBlobText(): Text

Returns: The formatted text as a string.

Remarks: The formatted text is stored in the blob field as UTF-8 encoded text.

SetBlobText(Text) :

Summary: Sets the formatted text in the blob field from a string.

procedure SetBlobText(WriteText: Text): 

Parameters:

  • WriteText: The text to be stored in the blob field.

Remarks: The text is stored in the blob field as UTF-8 encoded text.

GetPlainBlobText() : Text

Summary: Gets the plain text from the blob field and returns it as a string.

procedure GetPlainBlobText(): Text

Returns: The plain text as a string.

Remarks: The method uses the Editor Management codeunit to convert the formatted text to plain text.

Events

OnBeforeTransferFieldsFromExtTextLine(Record KVSKBASalesDocumentText, Record Extended Text Line) :

Summary: The Event is raised before transferring fields from the extended text line to the sales document text record.

[IntegrationEvent(false, false)]
local procedure OnBeforeTransferFieldsFromExtTextLine(var SalesDocumentText: Record "KVSKBASalesDocumentText"; var ExtendedTextLine: Record "Extended Text Line"): 

Parameters:

  • SalesDocumentText: The sales document text record.
  • ExtendedTextLine: The extended text line record.

Remarks: Subscribers can use this event to perform actions before the fields are transferred, such as modifying the text or setting additional fields.

OnAfterTransferFieldsFromExtTextLine(Record KVSKBASalesDocumentText, Record Extended Text Line) :

Summary: The Event is raised after transferring fields from the extended text line to the sales document text record.

[IntegrationEvent(false, false)]
local procedure OnAfterTransferFieldsFromExtTextLine(var SalesDocumentText: Record "KVSKBASalesDocumentText"; ExtendedTextLine: Record "Extended Text Line"): 

Parameters:

  • SalesDocumentText: The sales document text record.
  • ExtendedTextLine: The extended text line record.

Remarks: At this point, the changes to the sales document text record have been made and can be accessed by event subscribers.