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 |
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
Boolean
DecodeRecord
procedure DecodeRecord(RecordVariant: Variant): Boolean
Parameters / Return Value
RecordVariant
VariantReturns
Boolean
DecodeRecord
procedure DecodeRecord(RecRef: RecordRef): Boolean
Parameters / Return Value
RecRef
RecordRefReturns
Boolean
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)
Addes 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)
Addes 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.
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"
Parameters / Return Value
DocVariant
VariantReturns
Enum "EOS004 Table Type"
GetTableType
procedure GetTableType(TableID: Integer): Enum "EOS004 Table Type"
Parameters / Return Value
TableID
IntegerReturns
Enum "EOS004 Table Type"
GetSubtypeFieldNo
procedure GetSubtypeFieldNo(DocVariant: Variant): Integer
Parameters / Return Value
DocVariant
VariantReturns
Integer
GetSubtypeFieldNo
procedure GetSubtypeFieldNo(TableID: Integer): Integer
Parameters / Return Value
TableID
IntegerReturns
Integer
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)
Parameters / Return Value
RecRef
RecordRefTableType
Enum "EOS004 Table Type"Result
IntegerHandled
Boolean
OnAfterGetSubtypeFieldNo
local procedure OnAfterGetSubtypeFieldNo(var RecRef: RecordRef; TableType: Enum "EOS004 Table Type"; var Result: Integer)
Parameters / Return Value
RecRef
RecordRefTableType
Enum "EOS004 Table Type"Result
Integer
OnBeforeGetTableType
local procedure OnBeforeGetTableType(var RecRef: RecordRef; var CouldBeArchive: Boolean; var TableType: Enum "EOS004 Table Type"; var Handled: Boolean)
Parameters / Return Value
RecRef
RecordRefCouldBeArchive
BooleanTableType
Enum "EOS004 Table Type"Handled
Boolean
OnAfterGetTableType
local procedure OnAfterGetTableType(var RecRef: RecordRef; CouldBeArchive: Boolean; var TableType: Enum "EOS004 Table Type")
Parameters / Return Value
RecRef
RecordRefCouldBeArchive
BooleanTableType
Enum "EOS004 Table Type"
OnBeforeDecodeRecord
local procedure OnBeforeDecodeRecord(var RecRef: RecordRef; var Success: Boolean; var Handled: Boolean)
Parameters / Return Value
RecRef
RecordRefSuccess
BooleanHandled
Boolean
OnAfterDecodeRecord
local procedure OnAfterDecodeRecord(var RecRef: RecordRef; var Success: Boolean)
Parameters / Return Value
RecRef
RecordRefSuccess
Boolean
OnBeforeCreateRecRef
local procedure OnBeforeCreateRecRef(var RecRef: RecordRef; var Success: Boolean; var IsHandled: Boolean)
Parameters / Return Value
RecRef
RecordRefSuccess
BooleanIsHandled
Boolean
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.