Skip to content

KVSDMSConnect#

Procedures#

IsGuiActive() : Boolean#

procedure IsGuiActive(): Boolean

IsGuiActive(Text, Enum KVSDMSICMode) : Boolean#

procedure IsGuiActive(ObjectId: Text; Mode: Enum "KVSDMSICMode"): Boolean

IsListGuiActive() : Boolean#

procedure IsListGuiActive(): Boolean

IsListGuiActive(Text) : Boolean#

procedure IsListGuiActive(ObjectId: Text): Boolean

IsPageActive(Text, Enum KVSDMSICMode) : Boolean#

procedure IsPageActive(ObjectId: Text; Mode: Enum "KVSDMSICMode"): Boolean

IsOutgoingDocumentsActive() : Boolean#

procedure IsOutgoingDocumentsActive(): Boolean

CheckArchivingNecessary(Variant, Integer, Enum KVSDMSProcessAction, Integer) : Boolean#

Summary: use this function to check wether a report should be archived or not, based on Document Setup

procedure CheckArchivingNecessary(RecToPrintVariant: Variant; Usage: Integer; ProcessAction: Enum "KVSDMSProcessAction"; var BasePageId: Integer): Boolean

Parameters:

  • RecToPrintVariant: base record für the report
  • Usage: usage value (normally based on Report Selection usage)
  • ProcessAction: current process step (print, post, ...)
  • BasePageId: Id of the page from which ELO can obtain Metadata for the record

Returns: True if report should be archived

CheckArchivingNecessary(Integer, Variant, Integer, Enum KVSDMSProcessAction, Integer) : Boolean#

Summary: use this function to check wether a report should be archived or not, based on Report Setup

procedure CheckArchivingNecessary(ReportID: Integer; RecToPrintVariant: Variant; Usage: Integer; ProcessAction: Enum "KVSDMSProcessAction"; var BasePageId: Integer): Boolean

Parameters:

  • ReportID: the ID of the report to check
  • RecToPrintVariant: base record für the report
  • Usage: usage value (normally based on Report Selection usage)
  • ProcessAction: current process step (print, post, ...)
  • BasePageId: Id of the page from which ELO can obtain Metadata for the record

Returns: True if report should be archived

ArchiveDocument(Integer, Enum Report Selection Usage, Variant, Integer) :#

procedure ArchiveDocument(ReportId: Integer; Usage: Enum "Report Selection Usage"; RecordVariant: Variant; PageId: Integer): 

ArchiveOrQueue(Integer, Enum Report Selection Usage, Variant, Integer) :#

procedure ArchiveOrQueue(ReportId: Integer; Usage: Enum "Report Selection Usage"; RecordVariant: Variant; PageId: Integer): 

ConvertParameterStringForIX(Text, JsonObject) : Text#

procedure ConvertParameterStringForIX(func: Text; RequestObject: JsonObject): Text

GetAttachmentFileName(Text[250], Code[20], Text[250], Integer) :#

procedure GetAttachmentFileName(var AttachmentFileName: Text[250]; PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer): 

GetKeyArray(Variant) : JsonObject#

procedure GetKeyArray(RecordVariant: Variant): JsonObject

GetKeyArray(Variant, Integer) : JsonObject#

procedure GetKeyArray(RecordVariant: Variant; PageId: Integer): JsonObject

Post(Text, Text) : Text#

procedure Post(Url: Text; Body: Text): Text

GetIntegrationClientProfiles() : List#

procedure GetIntegrationClientProfiles(): List

Events#

OnCheckArchivingNecessary(JsonObject, Variant, Boolean, Integer, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnCheckArchivingNecessary(ObjectPayload: JsonObject; RecordVariant: Variant; var IsToArchive: Boolean; var PageId: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnCheckArchivingNecessary', '', false, false)]
local procedure DoSomethingOnCheckArchivingNecessary(ObjectPayload: JsonObject; RecordVariant: Variant; var IsToArchive: Boolean; var PageId: Integer; var IsHandled: Boolean)
begin
end;

OnBeforeCheckArchivingNecessary(Integer, Variant, Integer, Enum KVSDMSProcessAction, Boolean, Integer, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckArchivingNecessary(ReportID: Integer; RecordVariant: Variant; Usage: Integer; ProcessAction: Enum "KVSDMSProcessAction"; var IsToArchive: Boolean; var PageId: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnBeforeCheckArchivingNecessary', '', false, false)]
local procedure DoSomethingOnBeforeCheckArchivingNecessary(ReportID: Integer; RecordVariant: Variant; Usage: Integer; ProcessAction: Enum "KVSDMSProcessAction"; var IsToArchive: Boolean; var PageId: Integer; var IsHandled: Boolean)
begin
end;

OnBeforeArchiveDocument(Variant, Integer, Enum Report Selection Usage, Text, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeArchiveDocument(RecordVariant: Variant; ReportId: Integer; Usage: Enum "Report Selection Usage"; DocumentInfo: Text; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnBeforeArchiveDocument', '', false, false)]
local procedure DoSomethingOnBeforeArchiveDocument(RecordVariant: Variant; ReportId: Integer; Usage: Enum "Report Selection Usage"; DocumentInfo: Text; var Handled: Boolean)
begin
end;

OnBeforeArchiveFile(Variant, Text[250], Text, Text, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeArchiveFile(RecordVariant: Variant; Filename: Text[250]; Usage: Text; DocumentInfo: Text; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnBeforeArchiveFile', '', false, false)]
local procedure DoSomethingOnBeforeArchiveFile(RecordVariant: Variant; Filename: Text[250]; Usage: Text; DocumentInfo: Text; var Handled: Boolean)
begin
end;

OnBeforeArchiveFromBuffer(Record KVSDMSDocumentBuffer, Text, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeArchiveFromBuffer(DocumentBuffer: Record "KVSDMSDocumentBuffer"; DocumentInfo: Text; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnBeforeArchiveFromBuffer', '', false, false)]
local procedure DoSomethingOnBeforeArchiveFromBuffer(DocumentBuffer: Record "KVSDMSDocumentBuffer"; DocumentInfo: Text; var Handled: Boolean)
begin
end;

OnArchiveFromBuffer(Record KVSDMSDocumentBuffer, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnArchiveFromBuffer(DocumentBuffer: Record "KVSDMSDocumentBuffer"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnArchiveFromBuffer', '', false, false)]
local procedure DoSomethingOnArchiveFromBuffer(DocumentBuffer: Record "KVSDMSDocumentBuffer"; var Handled: Boolean)
begin
end;

OnAfterArchiving(Variant) :#

[IntegrationEvent(false, false)]
local procedure OnAfterArchiving(RecArchivedVariant: Variant): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnAfterArchiving', '', false, false)]
local procedure DoSomethingOnAfterArchiving(RecArchivedVariant: Variant)
begin
end;

OnAfterArchiveDocument(Variant, Text) :#

[IntegrationEvent(false, false)]
local procedure OnAfterArchiveDocument(RecArchivedVariant: Variant; Guid: Text): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnAfterArchiveDocument', '', false, false)]
local procedure DoSomethingOnAfterArchiveDocument(RecArchivedVariant: Variant; Guid: Text)
begin
end;

OnAfterArchiveFile(Variant, Text) :#

[IntegrationEvent(false, false)]
local procedure OnAfterArchiveFile(RecArchivedVariant: Variant; Guid: Text): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSDMSConnect", 'OnAfterArchiveFile', '', false, false)]
local procedure DoSomethingOnAfterArchiveFile(RecArchivedVariant: Variant; Guid: Text)
begin
end;