Table of Contents

KVSMEDDMSLib

Procedures

ArchiveDocumentWithStatus(Record KVSMEDDIIMDocument, Integer, Text, Integer, Boolean, Dictionary, Boolean, Text[250]) : Text

procedure ArchiveDocumentWithStatus(var KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"; TableIDPar: Integer; RecPositionPar: Text; FldMapPar: Integer; SetStatusPar: Boolean; AdditionalValues: Dictionary; IMDocTemporary: Boolean; CategoryPar: Text[250]): Text

CreateBarcodeFlag(Text[250], Text) :

Summary: Creates a barcode flag for the given table and record. The user is asked for a document type and the barcode

procedure CreateBarcodeFlag(TablenamePar: Text[250]; PositionPar: Text): 

Parameters:

  • TablenamePar: Table the barcode flag is created for
  • PositionPar: Record the barcode flag is created for

CreateDMSBarcode(Code[30], Integer, Text[250], Text[30]) :

Summary: Creates a barcode flag for the given table and record without user interaction.

procedure CreateDMSBarcode(DMSBarcodePar: Code[30]; TableIDPar: Integer; PositionPar: Text[250]; SubDocumentTypePar: Text[30]): 

Parameters:

  • DMSBarcodePar: Barcode
  • TableIDPar: Table the barcode flag is created for
  • PositionPar: Record the barcode flag is created for
  • SubDocumentTypePar: Document type for barcode flag

GetFirstOrLastArchivedDoc(Dictionary, Record KVSMEDDIIMDocument, Record KVSMEDDIQueryResultBlob, Record KVSMEDDIQueryResultIndex, Boolean, Text[250], Option) : Integer

procedure GetFirstOrLastArchivedDoc(var IndexValues: Dictionary; var TempKVSMEDDIIMDocument: Record "KVSMEDDIIMDocument" temporary; var TempKVSMEDDIQueryResultBlob: Record "KVSMEDDIQueryResultBlob" temporary; var TempKVSMEDDIQueryResultIndex: Record "KVSMEDDIQueryResultIndex" temporary; GetFilesPar: Boolean; SchemaPar: Text[250]; FirstOrLastPar: Option): Integer

GetStandardFieldMappingForRecord(RecordRef, Boolean) : Integer

Summary: Returns the field mapping ID configured for the table of the given record.

procedure GetStandardFieldMappingForRecord(RecordRef: RecordRef; ForArchiving: Boolean): Integer

Parameters:

  • RecordRef: Record the field mapping is looked up for
  • ForArchiving: True if the mapping is looked up for archiving, false for retrieval

Returns: ID of the field mapping

Events

OnGetDMSServiceProvider(Interface KVSMEDIDMSIntegration, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnGetDMSServiceProvider(var DMSServiceProvider: Interface "KVSMEDIDMSIntegration"; var Handled: Boolean): 

OnGetDMSServiceProviderV3(Interface KVSMEDIDMSIntegrationV3, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnGetDMSServiceProviderV3(var DMSServiceProvider: Interface "KVSMEDIDMSIntegrationV3"; var Handled: Boolean): 

OnBeforeOpenBarcodeFlag(Text[250], Text) :

Summary: The event is raised before the page barcode flag is opened

[IntegrationEvent(false, false)]
local procedure OnBeforeOpenBarcodeFlag(Tablename: Text[250]; RecPosition: Text): 

Parameters:

  • Tablename: Name of the record the barcode flag will be created for
  • RecPosition: Record position of the record the barcode flag will be created for

OnBeforeInsertDMSBarcode(Record KVSMEDDIDMSBarcode) :

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDMSBarcode(var KVSMEDDIDMSBarcode: Record "KVSMEDDIDMSBarcode"):