Codeunit 18122023 EOS AdvDoc Mngt
Codeunit 18122023 EOS AdvDoc Mngt
Methods
ShowSendDialog
procedure ShowSendDialog(DocVariant: Variant)
Parameters / Return Value
- DocVariant
Variant
ShowSendDialog
procedure ShowSendDialog(DocVariant: Variant; ClearGlobalFlags: Boolean)
Parameters / Return Value
DocVariant
Variant
ClearGlobalFlags
Boolean
ShowSaveDialog
procedure ShowSaveDialog(DocVariant: Variant)
Parameters / Return Value
- DocVariant
Variant
ShowSaveDialog
procedure ShowSaveDialog(DocVariant: Variant; ClearGlobalFlags: Boolean)
Parameters / Return Value
DocVariant
Variant
ClearGlobalFlags
Boolean
AddAsAsynchExecution
procedure AddAsAsynchExecution(DocVariant: Variant): Guid
Parameters / Return Value
DocVariant
Variant
Returns
Guid
AppendAsynchExecution
procedure AppendAsynchExecution(var AdvDocRequest: Record "EOS AdvDoc Request"): Integer
Parameters / Return Value
AdvDocRequest
Record "EOS AdvDoc Request"
Returns
Integer
BuildSendRequest
procedure BuildSendRequest(var DocVariant: Variant): Guid
Parameters / Return Value
DocVariant
Variant
Returns
Guid
BuildSendRequest
procedure BuildSendRequest(var DocVariant: Variant; var AdvDocRequest: Record "EOS AdvDoc Request"; ForceReportSetup: Code[10])
Parameters / Return Value
DocVariant
Variant
AdvDocRequest
Record "EOS AdvDoc Request"
ForceReportSetup
Code[10]
BuildDocumentList
procedure BuildDocumentList(var DocVariant: Variant; var AdvDocRequest: Record "EOS AdvDoc Request")
Parameters / Return Value
DocVariant
Variant
AdvDocRequest
Record "EOS AdvDoc Request"
BuildRecipientList
procedure BuildRecipientList(var AdvDocRequest: Record "EOS AdvDoc Request")
Parameters / Return Value
- AdvDocRequest
Record "EOS AdvDoc Request"
BuildRecipientList
procedure BuildRecipientList(var AdvDocRequest: Record "EOS AdvDoc Request"; DocEntryNo: Integer)
Parameters / Return Value
AdvDocRequest
Record "EOS AdvDoc Request"
DocEntryNo
Integer
GetDocumentLanguage
procedure GetDocumentLanguage(DocumentRecRef: RecordRef): Code[10]
Parameters / Return Value
DocumentRecRef
RecordRef
Returns
Code[10]
BuildDownloadRequest
procedure BuildDownloadRequest(var DocVariant: Variant): Guid
Parameters / Return Value
DocVariant
Variant
Returns
Guid
BuildDownloadRequest
procedure BuildDownloadRequest(var DocVariant: Variant; var AdvDocRequest: Record "EOS AdvDoc Request"; ForceReportSetup: Code[10])
Parameters / Return Value
DocVariant
Variant
AdvDocRequest
Record "EOS AdvDoc Request"
ForceReportSetup
Code[10]
Events
OnBeforeShowSendDialog
local procedure OnBeforeShowSendDialog(var DocVariant: Variant; var ReportSetupCode: Code[10]; var OpenDialog: Boolean; var Handled: Boolean)
Parameters / Return Value
DocVariant
Variant
ReportSetupCode
Code[10]
OpenDialog
Boolean
Handled
Boolean
OnAfterShowSendDialog
local procedure OnAfterShowSendDialog(var DocVariant: Variant; AdvDocRequest: Record "EOS AdvDoc Request")
Parameters / Return Value
DocVariant
Variant
AdvDocRequest
Record "EOS AdvDoc Request"
OnBeforeShowSaveDialog
local procedure OnBeforeShowSaveDialog(var DocVariant: Variant; var ReportSetupCode: Code[10]; var Handled: Boolean)
Parameters / Return Value
DocVariant
Variant
ReportSetupCode
Code[10]
Handled
Boolean
OnAfterShowSaveDialog
local procedure OnAfterShowSaveDialog(var DocVariant: Variant; AdvDocRequest: Record "EOS AdvDoc Request")
Parameters / Return Value
DocVariant
Variant
AdvDocRequest
Record "EOS AdvDoc Request"
OnAfterDocumentParsing
local procedure OnAfterDocumentParsing(DocumentRecRef: RecordRef;var AdvDocRequest: Record "EOS AdvDoc Request";var AdvDocDocuments: Record "EOS AdvDoc Documents")
this event is raised after the standard fields have been populated but before the database is inserted into the database.
Parameters / Return Value
DocumentRecRef
RecordRef
Source document
AdvDocRequest
Record "EOS AdvDoc Request"
Main ADR Request
AdvDocDocuments
Record "EOS AdvDoc Documents"
Current ADR document record
OnBeforeDocumentInsert
local procedure OnBeforeDocumentInsert(DocumentRecRef: RecordRef;var AdvDocRequest: Record "EOS AdvDoc Request";var AdvDocDocuments: Record "EOS AdvDoc Documents")
This event is executes after parsing but before insert the document record.
Parameters / Return Value
DocumentRecRef
RecordRef
Source document
AdvDocRequest
Record "EOS AdvDoc Request"
Main ADR Request
AdvDocDocuments
Record "EOS AdvDoc Documents"
Current ADR document record
OnAfterDocumentInsert
local procedure OnAfterDocumentInsert(DocumentRecRef: RecordRef;var AdvDocRequest: Record "EOS AdvDoc Request";var AdvDocDocuments: Record "EOS AdvDoc Documents")
This event is raised when the document record has already been inserted. You can use this event to add new customs files linked to this ADR document. The biggest difference between OnAfterDocumentParsing and this event is that OnAfterDocumentParsing runs before the insert, and therefore the autoincrement “entry No.” is not populated.
Parameters / Return Value
DocumentRecRef
RecordRef
Source document
AdvDocRequest
Record "EOS AdvDoc Request"
Main ADR Request
AdvDocDocuments
Record "EOS AdvDoc Documents"
Current ADR document record
OnAfterBuildDocumentList
local procedure OnAfterBuildDocumentList(var DocVariant: Variant; var AdvDocRequest: Record "EOS AdvDoc Request")
This event is raised at the end af BuildDocumentList procedure. All ADR documents records are already on db table.
Parameters / Return Value
DocVariant
Variant
Source processed document
AdvDocRequest
Record "EOS AdvDoc Request"
Main ADR Request
OnCustomizeSaveDialog
local procedure OnCustomizeSaveDialog(var DocVariant: Variant; var ReportSetupCode: Code[10]; var Chooses: List of [Text])
Parameters / Return Value
DocVariant
Variant
ReportSetupCode
Code[10]
Chooses
List[Text]
OnExecuteCustomizedSaveDialog
local procedure OnExecuteCustomizedSaveDialog(var DocVariant: Variant; var ReportSetupCode: Code[10]; Choose: Text; AdvDocRequest: Record "EOS AdvDoc Request"; var Handled: Boolean)
Parameters / Return Value
DocVariant
Variant
ReportSetupCode
Code[10]
Choose
Text[]
AdvDocRequest
Record "EOS AdvDoc Request"
Handled
Boolean
OnCustomizeSendDialog
local procedure OnCustomizeSendDialog(var DocVariant: Variant; var ReportSetupCode: Code[10]; var Chooses: List of [Text])
Parameters / Return Value
DocVariant
Variant
ReportSetupCode
Code[10]
Chooses
List[Text]
OnExecuteCustomizedSendDialog
local procedure OnExecuteCustomizedSendDialog(var DocVariant: Variant; var ReportSetupCode: Code[10]; Choose: Text; var Handled: Boolean)
Parameters / Return Value
DocVariant
Variant
ReportSetupCode
Code[10]
Choose
Text[]
Handled
Boolean
OnBeforeBuildRecipientList
local procedure OnBeforeBuildRecipientList(var AdvDocRequest: Record "EOS AdvDoc Request"; DocEntryNo: Integer; var AdvDocRecipients: Record "EOS AdvDoc Recipients"; var IsHandled: Boolean)
Event raised before building recipient list for the email.
Parameters / Return Value
AdvDocRequest
Record "EOS AdvDoc Request"
Current Advanced Document Request.
DocEntryNo
Integer
Reference to the Document.
AdvDocRecipients
Record "EOS AdvDoc Recipients"
Array of Recipients.
IsHandled
Boolean
Halded parameter to skip standard build of recipients.
OnAfterBuildRecipientList
local procedure OnAfterBuildRecipientList(var AdvDocRequest: Record "EOS AdvDoc Request"; DocEntryNo: Integer; var AdvDocRecipients: Record "EOS AdvDoc Recipients")
Event raised after building Recipient list.
Parameters / Return Value
AdvDocRequest
Record "EOS AdvDoc Request"
Current Advanced Document Request.
DocEntryNo
Integer
Reference to the Document.
AdvDocRecipients
Record "EOS AdvDoc Recipients"
Array of Recipients.
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.