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.

LanguageCaption
da-DKRecord Identification Buffer
de-ATRecord Identification Buffer
de-CHRecord Identification Buffer
de-DERecord Identification Buffer
en-AURecord Identification Buffer
en-CARecord Identification Buffer
en-GBRecord Identification Buffer
en-NZRecord Identification Buffer
es-ESRegistro de identificación de búfer
es-MXRegistro de identificación de búfer
fr-BERecord Identification Buffer
fr-CARecord Identification Buffer
fr-CHRecord Identification Buffer
fr-FRRecord Identification Buffer
en-USRecord Identification Buffer
it-CHRecord Identification Buffer
it-ITRecord Identification Buffer
nl-BERecord Identification Buffer
nl-NLRecord Identification Buffer

Fields

Entry No. (1)

Integer

The primary key.

LanguageCaption
da-DK# Nr
de-ATLfd. Nr.
de-CHLfd. Nr.
de-DELfd. Nr.
en-AUEntry No.
en-CAEntry No.
en-GBEntry No.
en-NZEntry No.
es-ESEntrada Nº
es-MXEntrada Nº
fr-BENo. d’entrée
fr-CANo. d’entrée
fr-CHNo. d’entrée
fr-FRNo. d’entrée
en-USEntry No.
it-CHNr. movimento
it-ITNr. movimento
nl-BEEntry No.
nl-NLEntry No.

Source Type (10)

Integer

The Table ID of the record.

LanguageCaption
da-DKKilde Type
de-ATHerkunftsart
de-CHHerkunftsart
de-DEHerkunftsart
en-AUSource Type
en-CASource Type
en-GBSource Type
en-NZSource Type
es-ESTipo de fuente
es-MXTipo de fuente
fr-BEType de Source
fr-CAType de Source
fr-CHType de Source
fr-FRType de Source
en-USSource Type
it-CHTipo origine
it-ITTipo origine
nl-BEBron Type
nl-NLBron 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.

LanguageCaption
da-DKKilde Undertype
de-ATHerkunftsunterart
de-CHHerkunftsunterart
de-DEHerkunftsunterart
en-AUSource Subtype
en-CASource Subtype
en-GBSource Subtype
en-NZSource Subtype
es-ESSubtipo fuente
es-MXSubtipo fuente
fr-BESource Subtype
fr-CASource Subtype
fr-CHSource Subtype
fr-FRSource Subtype
en-USSource Subtype
it-CHSottotipo origine
it-ITSottotipo origine
nl-BESource Subtype
nl-NLSource Subtype

Source ID (12)

Code[20]

The ID / “No.” of the record. This contains the template name for journal line type records.

LanguageCaption
da-DKKilde-ID
de-ATHerkunfts-ID
de-CHHerkunfts-ID
de-DEHerkunfts-ID
en-AUSource ID
en-CASource ID
en-GBSource ID
en-NZSource ID
es-ESID de origen
es-MXID de origen
fr-BEID Source
fr-CAID Source
fr-CHID Source
fr-FRID Source
en-USSource ID
it-CHID origine
it-ITID origine
nl-BEBron ID
nl-NLBron ID

Source Batch Name (13)

Code[10]

The batch name of the record. Only valid for journal line type records.

LanguageCaption
da-DKKilde Kladdenavn
de-ATHerkunftsbuch.-Blattname
de-CHHerkunftsbuch.-Blattname
de-DEHerkunftsbuch.-Blattname
en-AUSource Batch Name
en-CASource Batch Name
en-GBSource Batch Name
en-NZSource Batch Name
es-ESFuente Nombre del lote
es-MXFuente Nombre del lote
fr-BELot Nom de la source
fr-CALot Nom de la source
fr-CHLot Nom de la source
fr-FRLot Nom de la source
en-USSource Batch Name
it-CHNome batch origine
it-ITNome batch origine
nl-BEBron batchnaam
nl-NLBron batchnaam

Source Prod. Order Line (14)

Integer

The prod. order line no..

LanguageCaption
da-DKKilde Prod. Bestil Linje
de-ATHerkunfts-FA-Zeile
de-CHHerkunfts-FA-Zeile
de-DEHerkunfts-FA-Zeile
en-AUSource Prod. Order Line
en-CASource Prod. Order Line
en-GBSource Prod. Order Line
en-NZSource Prod. Order Line
es-ESProd fuente. Fila para ordenar
es-MXProd fuente. Fila para ordenar
fr-BEProd Source. Ligne de commande
fr-CAProd Source. Ligne de commande
fr-CHProd Source. Ligne de commande
fr-FRProd Source. Ligne de commande
en-USSource Prod. Order Line
it-CHRiga origine ord. produz.
it-ITRiga origine ord. produz.
nl-BEBron Prod. Bestel Line
nl-NLBron 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.

LanguageCaption
da-DKKilde Ref. Ingen.
de-ATHerkunftsref.-Nr.
de-CHHerkunftsref.-Nr.
de-DEHerkunftsref.-Nr.
en-AUSource Ref. No.
en-CASource Ref. No.
en-GBSource Ref. No.
en-NZSource Ref. No.
es-ESRef fuente. No.
es-MXRef fuente. No.
fr-BERef Source. Non.
fr-CARef Source. Non.
fr-CHRef Source. Non.
fr-FRRef Source. Non.
en-USSource Ref. No.
it-CHNr. rif. origine
it-ITNr. rif. origine
nl-BEBron Ref. Nee.
nl-NLBron Ref. Nee.

Version No. (16)

Integer

The version no., applicable only to sales / purchase archive tables.

LanguageCaption
da-DKUdgave nr
de-ATVersionsnr.
de-CHVersionsnr.
de-DEVersionsnr.
en-AUVersion No.
en-CAVersion No.
en-GBVersion No.
en-NZVersion No.
es-ESVersión no
es-MXVersión no
fr-BEVersion No.
fr-CAVersion No.
fr-CHVersion No.
fr-FRVersion No.
en-USVersion No.
it-CHNr. versione
it-ITNr. versione
nl-BEVersie No.
nl-NLVersie No.

Doc. No. Occurrence (17)

Integer

The doc. no. occurrence, applicable only to sales / purchase archive tables.

LanguageCaption
da-DKDok. No. Forekomst
de-ATBelegnr.-Häufigkeit
de-CHBelegnr.-Häufigkeit
de-DEBelegnr.-Häufigkeit
en-AUDoc. No. Occurrence
en-CADoc. No. Occurrence
en-GBDoc. No. Occurrence
en-NZDoc. No. Occurrence
es-ESDoc. Nº Ocurrencia
es-MXDoc. Nº Ocurrencia
fr-BEDoc. Présence n °
fr-CADoc. Présence n °
fr-CHDoc. Présence n °
fr-FRDoc. Présence n °
en-USDoc. No. Occurrence
it-CHOccorrenza nr. doc.
it-ITOccorrenza nr. doc.
nl-BEDoc. Voorkomen No.
nl-NLDoc. Voorkomen No.

Source GUID (18)

guid

The Source GUID, applicable to systemID field and other guid based field.

LanguageCaption
da-DKKilde-GUID
de-ATQuell-GUID
de-CHQuell-GUID
de-DEQuell-GUID
en-AUSource GUID
en-CASource GUID
en-GBSource GUID
en-NZSource GUID
es-ESGUID de origen
es-MXGUID de origen
fr-BESource GUID
fr-CASource GUID
fr-CHSource GUID
fr-FRSource GUID
en-USSource GUID
it-CHGUID origine
it-ITGUID origine
nl-BEBron-GUID
nl-NLBron-GUID

Record ID (20)

RecordID

An instance of a RecordId that represents the record.

LanguageCaption
da-DKrecord ID
de-ATDatensatz-ID
de-CHDatensatz-ID
de-DEDatensatz-ID
en-AURecord ID
en-CARecord ID
en-GBRecord ID
en-NZRecord ID
es-ESIdentificación del registro
es-MXIdentificación del registro
fr-BEID d’enregistrement
fr-CAID d’enregistrement
fr-CHID d’enregistrement
fr-FRID d’enregistrement
en-USRecord ID
it-CHID record
it-ITID record
nl-BERecord ID
nl-NLRecord ID

Company Name (21)

Text[30]

The company name of the record.

LanguageCaption
da-DKfirmanavn
de-ATMandantenname
de-CHMandantenname
de-DEMandantenname
en-AUCompany Name
en-CACompany Name
en-GBCompany Name
en-NZCompany Name
es-ESNombre de empresa
es-MXNombre de empresa
fr-BENom de la compagnie
fr-CANom de la compagnie
fr-CHNom de la compagnie
fr-FRNom de la compagnie
en-USCompany Name
it-CHNome società
it-ITNome società
nl-BEBedrijfsnaam
nl-NLBedrijfsnaam

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 Variant

    The 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 Variant

  • Returns Boolean


DecodeRecord

procedure DecodeRecord(RecRef: RecordRef): Boolean

Parameters / Return Value

  • RecRef RecordRef

  • Returns 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 RecordRef

    The resulting RecordRef.

  • Returns Boolean

    true if the value could be encoded and the record exists. false otherwise.


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 Boolean

    true if 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 Boolean

    true if 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 Variant

    The 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)

Addes a record to the buffer. See also AddToBuffer.

Parameters / Return Value

  • SourceType Integer

    The SourceSubtype.

  • SourceSubtype Integer

  • SourceNo Code[20]

    The Source No.

  • SourceBatchName Code[10]

    The Source Batch Name.

  • SourceLineNo Integer

    The Source Line No.

  • SourceProdOrderLineNo Integer

    The 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 Integer

    The document type.

  • Returns Boolean

    true if 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 Integer

    The document type.

  • WithError Boolean

    If true, a runtime error is raised if the passed document type could not be decoded.

  • Returns Boolean

    true if 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 Integer

    The document type.

  • Returns Boolean

    true if 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 Integer

    The document type.

  • WithError Boolean

    If true, a runtime error is raised if the passed document type could not be decoded.

  • Returns Boolean

    true if the document type was decoded successfully.


GetTableType

procedure GetTableType(DocVariant: Variant): Enum "EOS004 Table Type"

Parameters / Return Value

  • DocVariant Variant

  • Returns Enum "EOS004 Table Type"


GetTableType

procedure GetTableType(TableID: Integer): Enum "EOS004 Table Type"

Parameters / Return Value

  • TableID Integer

  • Returns Enum "EOS004 Table Type"


GetSubtypeFieldNo

procedure GetSubtypeFieldNo(DocVariant: Variant): Integer

Parameters / Return Value

  • DocVariant Variant

  • Returns Integer


GetSubtypeFieldNo

procedure GetSubtypeFieldNo(TableID: Integer): Integer

Parameters / Return Value

  • TableID Integer

  • Returns 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 Boolean

    Set this to true, if the record is a posted document.

  • IsArchived Boolean

    Set this to true, if the record is an archived document.

  • Handled Boolean

    Set 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 RecordRef

  • TableType Enum "EOS004 Table Type"

  • Result Integer

  • Handled Boolean


OnAfterGetSubtypeFieldNo

local procedure OnAfterGetSubtypeFieldNo(var RecRef: RecordRef; TableType: Enum "EOS004 Table Type"; var Result: Integer)

Parameters / Return Value

  • RecRef RecordRef

  • TableType 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 RecordRef

  • CouldBeArchive Boolean

  • TableType 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 RecordRef

  • CouldBeArchive Boolean

  • TableType Enum "EOS004 Table Type"


OnBeforeDecodeRecord

local procedure OnBeforeDecodeRecord(var RecRef: RecordRef; var Success: Boolean; var Handled: Boolean)

Parameters / Return Value

  • RecRef RecordRef

  • Success Boolean

  • Handled Boolean


OnAfterDecodeRecord

local procedure OnAfterDecodeRecord(var RecRef: RecordRef; var Success: Boolean)

Parameters / Return Value

  • RecRef RecordRef

  • Success Boolean


OnBeforeCreateRecRef

local procedure OnBeforeCreateRecRef(var RecRef: RecordRef; var Success: Boolean; var IsHandled: Boolean)

Parameters / Return Value

  • RecRef RecordRef

  • Success Boolean

  • IsHandled Boolean



EOS Labs -