Table 18122345 EOS Record Ident. Buffer
Table 18122345 EOS Record Ident. Buffer
Provides easy conversions from and to a SourceType-SourceSubtype-SourceId-Pair to a RecorcRef. Also serves as a record identification buffer for function abstraction.
| Language | Caption |
|---|---|
| da-DK | Record Identification Buffer |
| de-DE | Record Identification Buffer |
| es-ES | Registro de identificación de búfer |
| fr-FR | Record Identification Buffer |
| en-US | Record Identification Buffer |
| it-IT | Record Identification Buffer |
| nl-NL | Record Identification Buffer |
Fields
Entry No. (1)
Integer
The primary key.
| Language | Caption |
|---|---|
| da-DK | # Nr |
| de-DE | Lfd. Nr. |
| es-ES | Entrada Nº |
| fr-FR | No. d’entrée |
| en-US | Entry No. |
| it-IT | Nr. movimento |
| nl-NL | Entry No. |
Source Type (10)
Integer
The Table ID of the record.
| Language | Caption |
|---|---|
| da-DK | Kilde Type |
| de-DE | Herkunftsart |
| es-ES | Tipo de fuente |
| fr-FR | Type de Source |
| en-US | Source Type |
| it-IT | Tipo origine |
| nl-NL | Bron Type |
Source Subtype (11)
Option
"0" (0) , "1" (1) , "2" (2) , "3" (3) , "4" (4) , "5" (5) , "6" (6) , "7" (7) , "8" (8) , "9" (9) , "10" (10)
The Document Type (if applicable) of the record.
| Language | Caption |
|---|---|
| da-DK | Kilde Undertype |
| de-DE | Herkunftsunterart |
| es-ES | Subtipo fuente |
| fr-FR | Source Subtype |
| en-US | Source Subtype |
| it-IT | Sottotipo origine |
| nl-NL | Source Subtype |
Source ID (12)
Code[20]
The ID / “No.” of the record. This contains the template name for journal line type records.
| Language | Caption |
|---|---|
| da-DK | Kilde-ID |
| de-DE | Herkunfts-ID |
| es-ES | ID de origen |
| fr-FR | ID Source |
| en-US | Source ID |
| it-IT | ID origine |
| nl-NL | Bron ID |
Source Batch Name (13)
Code[10]
The batch name of the record. Only valid for journal line type records.
| Language | Caption |
|---|---|
| da-DK | Kilde Kladdenavn |
| de-DE | Herkunftsbuch.-Blattname |
| es-ES | Fuente Nombre del lote |
| fr-FR | Lot Nom de la source |
| en-US | Source Batch Name |
| it-IT | Nome batch origine |
| nl-NL | Bron batchnaam |
Source Prod. Order Line (14)
Integer
The prod. order line no..
| Language | Caption |
|---|---|
| da-DK | Kilde Prod. Bestil Linje |
| de-DE | Herkunfts-FA-Zeile |
| es-ES | Prod fuente. Fila para ordenar |
| fr-FR | Prod Source. Ligne de commande |
| en-US | Source Prod. Order Line |
| it-IT | Riga origine ord. produz. |
| nl-NL | Bron Prod. Bestel Line |
Source Ref. No. (15)
Integer
The source ref. no.. This will mostly be the “Line No.". For entry tables, this will contain the entry no.
| Language | Caption |
|---|---|
| da-DK | Kilde Ref. Ingen. |
| de-DE | Herkunftsref.-Nr. |
| es-ES | Ref fuente. No. |
| fr-FR | Ref Source. Non. |
| en-US | Source Ref. No. |
| it-IT | Nr. rif. origine |
| nl-NL | Bron Ref. Nee. |
Version No. (16)
Integer
The version no., applicable only to sales / purchase archive tables.
| Language | Caption |
|---|---|
| da-DK | Udgave nr |
| de-DE | Versionsnr. |
| es-ES | Versión no |
| fr-FR | Version No. |
| en-US | Version No. |
| it-IT | Nr. versione |
| nl-NL | Versie No. |
Doc. No. Occurrence (17)
Integer
The doc. no. occurrence, applicable only to sales / purchase archive tables.
| Language | Caption |
|---|---|
| da-DK | Dok. No. Forekomst |
| de-DE | Belegnr.-Häufigkeit |
| es-ES | Doc. Nº Ocurrencia |
| fr-FR | Doc. Présence n ° |
| en-US | Doc. No. Occurrence |
| it-IT | Occorrenza nr. doc. |
| nl-NL | Doc. Voorkomen No. |
Source GUID (18)
guid
The Source GUID, applicable to systemID field and other guid based field.
| Language | Caption |
|---|---|
| da-DK | Kilde-GUID |
| de-DE | Quell-GUID |
| es-ES | GUID de origen |
| fr-FR | Source GUID |
| en-US | Source GUID |
| it-IT | GUID origine |
| nl-NL | Bron-GUID |
Record ID (20)
RecordID
An instance of a RecordId that represents the record.
| Language | Caption |
|---|---|
| da-DK | record ID |
| de-DE | Datensatz-ID |
| es-ES | Identificación del registro |
| fr-FR | ID d’enregistrement |
| en-US | Record ID |
| it-IT | ID record |
| nl-NL | Record ID |
Company Name (21)
Text[30]
The company name of the record.
| Language | Caption |
|---|---|
| da-DK | firmanavn |
| de-DE | Mandantenname |
| es-ES | Nombre de empresa |
| fr-FR | Nom de la compagnie |
| en-US | Company Name |
| it-IT | Nome società |
| nl-NL | Bedrijfsnaam |
Description (40)
Text[500]
An optional description field. This is only when using the lookup page.
| Language | Caption |
|---|---|
| de-DE | Beschreibung |
| en-US | Description |
| it-IT | Descrizione |
Methods
GetTable
procedure GetTable("Table": Variant): Boolean
Loads a given record into the buffer, decoding it into a SourceType-SourceSubtype-SourceId-Pair.
Parameters / Return Value
Table
VariantThe record to load into the buffer. Must be a record or a recordref pointing to a table.
Returns
Booleantrueif the record was successfully decoded.
DecodeRecord
procedure DecodeRecord(RecordVariant: Variant): Boolean
Decodes a record variant into the buffer fields.
Parameters / Return Value
RecordVariant
VariantThe record variant to decode. Can be a record or RecordRef.
Returns
Booleantrueif the record was successfully decoded.
DecodeRecord
procedure DecodeRecord(RecRef: RecordRef): Boolean
Decodes a RecordRef into the buffer fields by analyzing its primary key structure.
Parameters / Return Value
RecRef
RecordRefThe RecordRef to decode.
Returns
Booleantrueif the record was successfully decoded.
CreateRecRef
procedure CreateRecRef(var RecRef: RecordRef): Boolean
Creates an instance of a RecordRef by using the SourceType-SourceSubtype-SourceId-Pair fields on the record. Note: The targetted record must exist.
Parameters / Return Value
RecRef
RecordRefThe resulting RecordRef.
Returns
Booleantrueif the value could be encoded and the record exists.falseotherwise.
ShowCard
procedure ShowCard()
Opens the default card page for the current record.
IsPostedDocument
procedure IsPostedDocument(): Boolean
Indicates if the current record is a posted document.
Parameters / Return Value
Returns
Booleantrueif the current record points to a posted document.
IsArchivedDocument
procedure IsArchivedDocument(): Boolean
Indicates if the current record is an archived document.
Parameters / Return Value
Returns
Booleantrueif the current record points to an archived document.
AddToBuffer
procedure AddToBuffer(DocVariant: Variant)
Addes a record to the buffer. This is mostly the same as GetTable, but this also inserts the resulting record.
Parameters / Return Value
DocVariant
VariantThe record to load into the buffer. Must be a record or a recordref pointing to a table.
AddToBufferByType
procedure AddToBufferByType(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceBatchName: Code[10]; SourceLineNo: Integer; SourceProdOrderLineNo: Integer; SourceSystemId: Guid)
Adds a record to the buffer. See also AddToBuffer.
Parameters / Return Value
SourceType
IntegerThe SourceSubtype.
SourceSubtype
IntegerSourceNo
Code[20]The Source No.
SourceBatchName
Code[10]The Source Batch Name.
SourceLineNo
IntegerThe Source Line No.
SourceProdOrderLineNo
IntegerThe Prod. Order Line No.
SourceSystemId
GuidThe Source System ID.
AddToBufferByType
procedure AddToBufferByType(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceBatchName: Code[10]; SourceLineNo: Integer; SourceProdOrderLineNo: Integer)
Adds a record to the buffer. See also AddToBuffer.
Parameters / Return Value
SourceType
IntegerThe SourceSubtype.
SourceSubtype
IntegerSourceNo
Code[20]The Source No.
SourceBatchName
Code[10]The Source Batch Name.
SourceLineNo
IntegerThe Source Line No.
SourceProdOrderLineNo
IntegerThe Prod. Order Line No.
AddToBufferByType
procedure AddToBufferByType(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer)
Adds a record to the buffer. See also AddToBuffer.
Parameters / Return Value
SourceType
IntegerThe SourceSubtype.
SourceSubtype
IntegerSourceNo
Code[20]The Source No.
SourceLineNo
IntegerThe Source Line No.
DecodeCopyDocumentPurchDocType
procedure DecodeCopyDocumentPurchDocType(Value: Integer): Boolean
Decodes the purchase DocumentType that is used by Copy Document Mgt. into a source-type/subtype/id pair.
Parameters / Return Value
Value
IntegerThe document type.
Returns
Booleantrueif the document type was decoded successfully.
DecodeCopyDocumentPurchDocType
procedure DecodeCopyDocumentPurchDocType(Value: Integer; WithError: Boolean): Boolean
Decodes the purchase DocumentType that is used by Copy Document Mgt. into a source-type/subtype/id pair.
Parameters / Return Value
Value
IntegerThe document type.
WithError
BooleanIf
true, a runtime error is raised if the passed document type could not be decoded.Returns
Booleantrueif the document type was decoded successfully.
DecodeCopyDocumentSalesDocType
procedure DecodeCopyDocumentSalesDocType(Value: Integer): Boolean
Decodes the sales DocumentType that is used by Copy Document Mgt. into a source-type/subtype/id pair.
Parameters / Return Value
Value
IntegerThe document type.
Returns
Booleantrueif the document type was decoded successfully.
DecodeCopyDocumentSalesDocType
procedure DecodeCopyDocumentSalesDocType(Value: Integer; WithError: Boolean): Boolean
Decodes the sales DocumentType that is used by Copy Document Mgt. into a source-type/subtype/id pair.
Parameters / Return Value
Value
IntegerThe document type.
WithError
BooleanIf
true, a runtime error is raised if the passed document type could not be decoded.Returns
Booleantrueif the document type was decoded successfully.
GetTableType
procedure GetTableType(DocVariant: Variant): Enum "EOS004 Table Type"
Determines the table type by analyzing the primary key structure of a table.
Parameters / Return Value
DocVariant
VariantThe record variant to analyze. Can be a record or RecordRef.
Returns
Enum "EOS004 Table Type"The table type enum value.
GetTableType
procedure GetTableType(TableID: Integer): Enum "EOS004 Table Type"
Determines the table type by analyzing the primary key structure of a table.
Parameters / Return Value
TableID
IntegerThe table ID to analyze.
Returns
Enum "EOS004 Table Type"The table type enum value indicating the key structure pattern (Entry, Doc, TypedDoc, etc.).
GetSubtypeFieldNo
procedure GetSubtypeFieldNo(DocVariant: Variant): Integer
Gets the field number of the subtype field for a given record variant.
Parameters / Return Value
DocVariant
VariantThe record variant to analyze. Can be a record or RecordRef.
Returns
IntegerThe field number of the subtype field, or 0 if the table has no subtype field.
GetSubtypeFieldNo
procedure GetSubtypeFieldNo(TableID: Integer): Integer
Gets the field number of the subtype field for a given table ID.
Parameters / Return Value
TableID
IntegerThe table ID to analyze.
Returns
IntegerThe field number of the subtype field (typically Document Type), or 0 if the table has no subtype field.
GetDescription
procedure GetDescription(): Text[500]
Generates a human-readable description of the record based on its table, subtype, source ID, and line number. Can be customized via events.
Parameters / Return Value
Returns
Text[500]A formatted description text.
Duplicate
procedure Duplicate(var TempOutBuffer: Record "EOS Record Ident. Buffer")
Duplicates the contents of the buffer without sharing the instance.
Parameters / Return Value
TempOutBuffer
Record "EOS Record Ident. Buffer"The new buffer.
AssignDescription
procedure AssignDescription(force: Boolean)
Assigns a default description to all records in this instance. You have the option whether to overwrite existing descriptions.
Parameters / Return Value
force
BooleanIf
true, existing descriptions will be overwritten.
Lookup
procedure Lookup(): Boolean
Opens a lookup page for selecting a record from the buffer.
Parameters / Return Value
Returns
Booleantrueif a record was selected,falseif the lookup was cancelled.
Lookup
procedure Lookup(Title: Text): Boolean
Opens a lookup page for selecting a record from the buffer with a custom title.
Parameters / Return Value
Title
Text[]The title to display on the lookup page.
Returns
Booleantrueif a record was selected,falseif the lookup was cancelled.
LookupMultiple
procedure LookupMultiple(var TempSelectedRecords: Record "EOS Record Ident. Buffer"): Boolean
Opens a lookup page for selecting multiple records from the buffer.
Parameters / Return Value
TempSelectedRecords
Record "EOS Record Ident. Buffer"The temporary buffer to populate with the selected records.
Returns
Booleantrueif one or more records were selected,falseif the lookup was cancelled.
LookupMultiple
procedure LookupMultiple(Title: Text; var TempSelectedRecords: Record "EOS Record Ident. Buffer"): Boolean
Opens a lookup page for selecting multiple records from the buffer with a custom title.
Parameters / Return Value
Title
Text[]The title to display on the lookup page.
TempSelectedRecords
Record "EOS Record Ident. Buffer"The temporary buffer to populate with the selected records.
Returns
Booleantrueif one or more records were selected,falseif the lookup was cancelled.
Events
OnGetTableType
local procedure OnGetTableType(var IsPosted: Boolean; var IsArchived: Boolean; var Handled: Boolean)
An event that checks if a table is a posted document or an archived document. If this event is not handled, both values default to false. Most common NAV tables are already handled.
Parameters / Return Value
IsPosted
BooleanSet this to true, if the record is a posted document.
IsArchived
BooleanSet this to true, if the record is an archived document.
Handled
BooleanSet this to true if you handled the request.
OnBeforeGetSubtypeFieldNo
local procedure OnBeforeGetSubtypeFieldNo(var RecRef: RecordRef; TableType: Enum "EOS004 Table Type"; var Result: Integer; var Handled: Boolean)
Raised before determining the subtype field number for a table.
Parameters / Return Value
RecRef
RecordRefThe RecordRef being analyzed.
TableType
Enum "EOS004 Table Type"The determined table type.
Result
IntegerThe subtype field number result.
Handled
BooleanSet to true if the event handler has determined the result.
OnAfterGetSubtypeFieldNo
local procedure OnAfterGetSubtypeFieldNo(var RecRef: RecordRef; TableType: Enum "EOS004 Table Type"; var Result: Integer)
Raised after determining the subtype field number for a table.
Parameters / Return Value
RecRef
RecordRefThe RecordRef being analyzed.
TableType
Enum "EOS004 Table Type"The determined table type.
Result
IntegerThe subtype field number result that can be modified.
OnBeforeGetTableType
local procedure OnBeforeGetTableType(var RecRef: RecordRef; var CouldBeArchive: Boolean; var TableType: Enum "EOS004 Table Type"; var Handled: Boolean)
Raised before determining the table type by analyzing primary key structure.
Parameters / Return Value
RecRef
RecordRefThe RecordRef being analyzed.
CouldBeArchive
BooleanIndicates if the table name suggests it could be an archive table.
TableType
Enum "EOS004 Table Type"The determined table type that can be set by the handler.
Handled
BooleanSet to true if the event handler has determined the table type.
OnAfterGetTableType
local procedure OnAfterGetTableType(var RecRef: RecordRef; CouldBeArchive: Boolean; var TableType: Enum "EOS004 Table Type")
Raised after determining the table type by analyzing primary key structure.
Parameters / Return Value
RecRef
RecordRefThe RecordRef being analyzed.
CouldBeArchive
BooleanIndicates if the table name suggests it could be an archive table.
TableType
Enum "EOS004 Table Type"The determined table type that can be modified.
OnBeforeDecodeRecord
local procedure OnBeforeDecodeRecord(var RecRef: RecordRef; var Success: Boolean; var Handled: Boolean)
Raised before decoding a RecordRef into buffer fields.
Parameters / Return Value
RecRef
RecordRefThe RecordRef to decode.
Success
BooleanSet to true if the decode was successful.
Handled
BooleanSet to true if the event handler has performed the decoding.
OnAfterDecodeRecord
local procedure OnAfterDecodeRecord(var RecRef: RecordRef; var Success: Boolean)
Raised after decoding a RecordRef into buffer fields.
Parameters / Return Value
RecRef
RecordRefThe RecordRef that was decoded.
Success
BooleanIndicates if the decode was successful and can be modified.
OnBeforeCreateRecRef
local procedure OnBeforeCreateRecRef(var RecRef: RecordRef; var Success: Boolean; var IsHandled: Boolean)
Raised before creating a RecordRef from the buffer fields.
Parameters / Return Value
RecRef
RecordRefThe RecordRef to create.
Success
BooleanSet to true if the RecordRef was successfully created.
IsHandled
BooleanSet to true if the event handler has performed the creation.
OnBeforeGetDescription
local procedure OnBeforeGetDescription(Rec: Record "EOS Record Ident. Buffer"; var DescriptionText: Text; var IsHandled: Boolean)
Raised before getting the description of the record.
Parameters / Return Value
Rec
Record "EOS Record Ident. Buffer"The EOS Record Ident. Buffer record.
DescriptionText
Text[]The description text.
IsHandled
BooleanGets or sets if the event is handled.
OnAfterGetDescription
local procedure OnAfterGetDescription(Rec: Record "EOS Record Ident. Buffer"; var DescriptionText: Text)
Raised after the description for a record was retrieved.
Parameters / Return Value
Rec
Record "EOS Record Ident. Buffer"The EOS Record Ident. Buffer record.
DescriptionText
Text[]The description text.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.