Source AL, 1,813 lines
src/Layers/W1/BaseApp/Foundation/Reporting/CustomLayoutReporting.Codeunit.allines 23 to 38 of 1,813, Copyright (c) Microsoft Corporation. MIT
codeunit 8800 "Custom Layout Reporting"{ // This codeunit implements batch printing and custom layout association on a per-object basis. // Reports may be based on one table, but we may want to specific layout per-customer, or per-vendor. // This codeunit provides functions to help manage the association between the table that backs the report and the object we want custom layouts on. // // Example code below, for Customer Statements, backed by Customer and associating custom reports per-Customer: // // // Get the RecordRef of the table that will source the data for our report - Statements should be backed by Customer // RecRef.OPEN(DATABASE::Customer); // // Set up the association between the Table that is the source of the report and the association to the table we want layouts for // // In this case, we are using Customer for the report and Customer for the layouts. // CustomerLayoutReporting.ProcessReport(ReportSelections.Usage::"C.Statement",RecRef,'No.',DATABASE::Customer,'No.',TRUE); EventSubscriberInstance = Manual;
All 1,813 lines
Events 21 in 29
| [IntegrationEvent] OnIsTestMode(var TestMode: Boolean) | 17-29 |
| [IntegrationEvent] OnAfterProcessReport() | 17-29 |
| [IntegrationEvent] OnBeforeCallReportSaveAs(ReportID: Integer; ReportFormatValue: ReportFormat) | 17-29 |
| [IntegrationEvent] OnBeforePrintReport(var DataRecRef: RecordRef; ReportID: Integer) | 17-29 |
| [IntegrationEvent] OnBeforeRunReportWithCustomReportSelection(var DataRecRef: RecordRef; var ReportID: Integer; var CustomReportSelection: Record "Custom Report Selection"; var EmailPrintIfEmailIsMissing: Boolean; var TempBlobIndicesNameValueBuffer: Record "Name/Value Buffer" temporary; var TempBlobList: Codeunit "Temp Blob List"; var OutputType: Option; var AnyOutputExists: Boolean; var InHandled: Boolean) | 17-29 |
| [IntegrationEvent] OnGenerateFileNameOnAfterAssignFileName(var FileName: Text; ReportID: Integer; Extension: Text; DataRecRef: RecordRef) | 17-29 |
| [IntegrationEvent] OnCreateReportWithExtensionOnBeforeHtmlFileClose(ReportID: Integer; RepFormat: ReportFormat; var DataRecRef: RecordRef; var FileStream: OutStream) | new in 18 |
All 22 events in 17-29
Public procedures 31 in 29
All 32 procedures in 17-29
Changes 1 in 27
| [IntegrationEvent] OnBeforeThrowProcessReportError(var ErrorMessageHandler: Codeunit "Error Message Handler"; var ReportDataRecordRef: RecordRef; var OutputType: Option) | new in 27 |
| added |
All 21 changes in 17-29