Codeunit 1173 Document Attachment Mgmt

Base Application, Microsoft.Foundation.Attachment

Source AL, 1,908 lines

src/Layers/W1/BaseApp/Foundation/Attachment/DocumentAttachmentMgmt.Codeunit.allines 26 to 41 of 1,908, Copyright (c) Microsoft Corporation. MIT

codeunit 1173 "Document Attachment Mgmt"{    // // Code unit to manage document attachment to records.    trigger OnRun()    begin    end;    var        ConfirmManagement: Codeunit "Confirm Management";        PrintedToAttachmentTxt: Label 'The document has been printed to attachments.';        NoSaveToPDFReportTxt: Label 'There are no reports which could be saved to PDF for this document.';        ShowAttachmentsTxt: Label 'Show Attachments';        DeleteAttachmentsConfirmQst: Label 'Do you want to delete the attachments for this document?';        RelatedAttachmentsFilterTxt: Label '%1|%2', Comment = '%1 = Source Table ID, %2 = Related Table ID', Locked = true;

All 1,908 lines

Events 30 in 29

[IntegrationEvent] OnBeforeCopyAttachmentsForPostedDocsLines(var FromRecRef: RecordRef; var ToRecRef: RecordRef; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeDocAttachForPostedSalesDocs(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnCopyAttachmentsForPostedDocsOnBeforeToDocumentAttachmentInsert(var FromDocumentAttachment: Record "Document Attachment"; var ToDocumentAttachment: Record "Document Attachment")new in 19
[IntegrationEvent] OnCopyAttachmentsForPostedDocsOnAfterToDocumentAttachmentInsert(var FromDocumentAttachment: Record "Document Attachment"; var ToDocumentAttachment: Record "Document Attachment")new in 19
[IntegrationEvent] OnIsDuplicateFileOnAfterSetFilters(var DocumentAttachment: Record "Document Attachment")new in 19
[IntegrationEvent] OnAfterSetDocumentAttachmentFiltersForRecRef(var DocumentAttachment: Record "Document Attachment"; RecRef: RecordRef)new in 20
[IntegrationEvent] OnBeforeDeleteAttachedDocumentsWithConfirm(RecRef: RecordRef; var IsHandled: Boolean)new in 20

All 31 events in 17-29

Public procedures 17 in 29

ShowNotification(Variant: Variant; NumberOfReportsAttached: Integer; ShowAction: Boolean)17-29
ShowNotFoundPrintableReportsNotification(Variant: Variant)17-29
ShowDocumentAttachments(Notification: Notification)17-29
CopyAttachmentsForPostedDocs(var FromRecRef: RecordRef; var ToRecRef: RecordRef)new in 19
DeleteAttachedDocuments(RecRef: RecordRef)new in 21
SetDocumentAttachmentFiltersForRecRef(var DocumentAttachment: Record "Document Attachment"; RecRef: RecordRef)new in 21

All 33 procedures in 17-29

Changes 2 in 29

List17181920212223242526272829
Procedures1109143212
Events324111413
internal IsSupportedByFileViewerExtension(FileExtension: Text; IncludeImages: Boolean): Booleannew in 29
added
internal IsSupportedByFileViewerFileName(FileName: Text; IncludeImages: Boolean): Booleannew in 29
added

All 62 changes in 17-29