Skip to content

Codeunit wDCR_CondLayoutSelectionMgt

Exposes procedures to work with conditional layout selections.

Properties

Name Value
Access Public

Methods

wgFncExportConditionalLayoutSelections

Exports conditional layout selections for the reports in the filter to an XML file.

Parameters

Type Name Description
Record "wDCR_CondLayoutSelection" vRecwDCR_CondLayoutSelection Filter of the conditional layout selections to export.

wgFncExportConditionalLayoutSelections

Exports conditional layout selections for the reports in the filter as XML to a BLOB.

Parameters

Type Name Description
Record "wDCR_CondLayoutSelection" vRecwDCR_CondLayoutSelection Filter of the conditional layout selections to export.
Codeunit "Temp Blob" vCduTempBlob The TempBlob to write the conditional layout selections to.

wgFncGetConditionalLayout

Gets the layout that applies for the specified report dataset.

Parameters

Type Name Description
Integer pReportID ID of the report.
Text pWordXmlPart The XML Part definition of the dataset.
Codeunit "Temp Blob" pCduTempBlobXmlDataset The Temp Blob containing the XML dataset.
Record "Report Layout List" vRecResultReportLayoutList The layout that should be used meeting the conditions.

Returns

Type Description
Boolean true iff the conditions for one of the conditional layout mappings is met.

wgFncGetDocumentCreatorConditionalLayoutSelectionsFileExtension

Returns the file extension for Document Creator Conditional Layout Selections files.

Returns

Type Description
Text[3] Document Creator Conditional Layout Selections file extension.

wgFncGetDocumentCreatorConditionalLayoutSelectionsFileFilter

Returns the file filter for Document Creator Conditional Layout Selections files.

Returns

Type Description
Text Document Creator Conditional Layout Selections file filter.

wgFncImportConditionalLayoutSelections

Imports conditional layout selections for reports from an XML file.

wgFncImportConditionalLayoutSelections

Imports conditional layout selections for reports from a BLOB that contains the conditional layout selections in XML format.

Parameters

Type Name Description
Codeunit "Temp Blob" pCduTempBlob The TempBlob to read the conditional layout selections from.

wlEvpOnAfterGetConditionalLayout

Allows to hook into whether the layout specified by the wDCR_CondReportLayoutMapping record should be used for the report.

Parameters

Type Name Description
Integer pReportID The ID of the report object.
Text pWordXmlPart The Word XML Part contents of the report as text.
Codeunit "Temp Blob" pCduTempBlobXmlDataset A Blob containing the contents of the XML dataset.
Record "wDCR_CondReportLayoutMapping" vRecwDCR_CondReportLayoutMapping The conditional report layout mapping record
Record "Report Layout List" vRecResultReportLayoutList The resulting report layout that will be used.
Boolean vConditionalLayoutFound Whether or not the report layout should be used.