Skip to content

Codeunit wDCR_CondLayoutSelectionMgt

Exposes procedures to work with conditional layout selections.

Properties

Name Value
Access Public

Methods

wgFncExportConditionalLayoutSelections(wDCR_CondLayoutSelection@)

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(wDCR_CondLayoutSelection@, Codeunit::System#Utilities#Temp Blob@)

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(Integer, Text, Codeunit::System#Utilities#Temp Blob, Report Layout List@):Boolean

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:Text[3]

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

Returns

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

wgFncGetDocumentCreatorConditionalLayoutSelectionsFileFilter:Text

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(Codeunit::System#Utilities#Temp Blob)

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(Integer, Text, Codeunit::System#Utilities#Temp Blob, wDCR_CondReportLayoutMapping@, Report Layout List@, Boolean@)

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.