Skip to content

KVSMEDIDMSIntegrationV3#

Procedures#

ArchiveDocCounter(Dictionary, Boolean, Integer) : Text#

procedure ArchiveDocCounter(AdditionalValues: Dictionary; OnlyWithAttachedFilePar: Boolean; var numberOfDocumentsPar: Integer): Text

ArchiveDocumentWithoutFM(Record KVSMEDDIIMDocument, Dictionary, Text[250], Boolean) : Text#

procedure ArchiveDocumentWithoutFM(var KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"; AdditionalValues: Dictionary; CategoryPar: Text[250]; IMDocTemporary: Boolean): Text

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

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

CopyMoveDocsFromIA(Record KVSMEDInfoRequestHeader, Record KVSMEDInfoRequestHeader, Boolean, Integer) : Boolean#

Summary: Copy or move dms entries from one info request to another

procedure CopyMoveDocsFromIA(SourceKVSMEDInfoRequestHeader: Record "KVSMEDInfoRequestHeader"; DestKVSMEDInfoRequestHeader: Record "KVSMEDInfoRequestHeader"; CopyPar: Boolean; var NumberDocsProcessed: Integer): Boolean

Parameters:

  • SourceKVSMEDInfoRequestHeader: Info Request to copy or move DMS entries from
  • DestKVSMEDInfoRequestHeader: Info request to copy or move DMS entries to
  • CopyPar: True --> copy dms entries. False --> move dms entries.
  • NumberDocsProcessed: Returns the number of dms entries copied or moved

Returns: Empty if no error occures, otherwise error text

CreateAdditionalValues(Dictionary, Integer, Text, Integer, Text) : Boolean#

procedure CreateAdditionalValues(var AdditionalValues: Dictionary; TableIDPar: Integer; RecPositionPar: Text; FldMapPar: Integer; var ErrorTextVar: Text): Boolean

DMSIsActive() : Boolean#

Summary: Checks whether the DMS interface is active. This function should be called before using any other interface function.

procedure DMSIsActive(): Boolean

Returns: True --> DMS interface is active. False --> DMS interface is not active

GetArchivedDoc(Dictionary, Record KVSMEDDIIMDocument) : Integer#

procedure GetArchivedDoc(var IndexFields: Dictionary; var KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"): Integer

GetArchivedDocsWithIndex(Dictionary, Record KVSMEDDIIMDocument, Record KVSMEDDIQueryResultBlob, Record KVSMEDDIQueryResultIndex, Boolean, Text[250]) : Integer#

procedure GetArchivedDocsWithIndex(var IndexFields: Dictionary; var KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"; var KVSMEDDIQueryResultBlob: Record "KVSMEDDIQueryResultBlob"; var KVSMEDDIQueryResultIndex: Record "KVSMEDDIQueryResultIndex"; GetFilesPar: Boolean; SchemaPar: Text[250]): Integer

GetArchivedFile(Text[250], Text[250], Record KVSMEDDIIMDocument) : Boolean#

Summary: returns the file from DMS being referenced by drive id and file id

procedure GetArchivedFile(FileID: Text[250]; DriveID: Text[250]; var TempKVSMEDDIIMDocument: Record "KVSMEDDIIMDocument" temporary): Boolean

Parameters:

  • FileID: File ID of the file to get
  • DriveID: Drive ID of the file to get
  • di-QueryResultBlobPar-QueryResultBlobPar: Temporary table of DI-IMQueryBlobResult containing the file.

Returns: True if the file was found. Otherwise false.

GetSchemaDictonary(Text) : Dictionary#

Summary: Returns a dictonary of of index fields in a given schema

procedure GetSchemaDictonary(Schema: Text): Dictionary

Parameters:

  • Schema: Schema from witch the index fields are returned

Returns: Dictonary of index fields in the given schema

GetStandardReportFieldMapping(Text) : Integer#

Summary: Returns the default fieldmapping for report archiving for a given table

procedure GetStandardReportFieldMapping(TableName: Text): Integer

Parameters:

  • TableName: Table name to return the default fieldmapping

Returns: Default fieldmapping for report archiving

GetStandardReportFieldMapping(Text, Integer) : Integer#

Summary: Returns the default fieldmapping for report archiving for a given table

procedure GetStandardReportFieldMapping(TableName: Text; ReportID: Integer): Integer

Parameters:

  • TableName: Table name to return the default fieldmapping
  • ReportID: For this report the Fieldmapping is searched. If no special fieldmapping exists, the standard fieldmapping for the table is used

Returns: Default fieldmapping for report archiving

GetStandardReportFieldMappingForRecord(RecordRef) : Integer#

Summary: Returns the default fieldmapping for report archiving for a given table

procedure GetStandardReportFieldMappingForRecord(RecordRef: RecordRef): Integer

Parameters:

  • RecRef: Record to find fieldmapping for

Returns: Default fieldmapping for report archiving

GetStandardReportFieldMappingForRecord(RecordRef, Integer) : Integer#

Summary: Returns the default fieldmapping for report archiving for a given table

procedure GetStandardReportFieldMappingForRecord(RecordRef: RecordRef; ReportID: Integer): Integer

Parameters:

  • RecRef: Record to find fieldmapping for
  • ReportID: For this report the Fieldmapping is searched. If no special fieldmapping exists, the standard fieldmapping for the table is used

Returns: Default fieldmapping for report archiving

GetStandardFieldMapping(Text, Boolean) : Integer#

Summary: Returns the default fieldmapping for archiving or query for a given table

procedure GetStandardFieldMapping(TableName: Text; ForArchiving: Boolean): Integer

Parameters:

  • TableName: Table name to return the default fieldmapping
  • ForArchiving: True --> archiving. False --> query.

Returns: Default fieldmapping for archiving or query

GetStandardFieldMappingForRecord(RecordRef, Boolean) : Integer#

Summary: Returns the default fieldmapping for archiving or query for a given record

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

Parameters:

  • RecRef: Record to find fieldmapping for
  • ForArchiving: True --> archiving. False --> query.

Returns: Default fieldmapping for archiving or query

GetStandardFieldMappingSchema(Text, Boolean) : Text#

procedure GetStandardFieldMappingSchema(TableName: Text; ForArchiving: Boolean): Text