Skip to content

Codeunit wDCR_ReportDatasetExtensionMgt

Provides all implementation related to Document Creator Report Dataset Extensions.

Properties

Name Value
Access Public

Methods

wgFncExportCustomizedDataSetXml

Opens a report's request page and exports the customized XML report dataset.

Parameters

Type Name Description
Integer pReportID Report ID
Text pXmlParameters The parameters to use (can also be empty).

Returns

Type Description
Text Dataset XML File Name

wgFncExportDataSetExtensions

Exports Dataset extensions for the reports in the filter to an XML file.

Parameters

Type Name Description
Record "wDCR_DatasetExtension" vRecwDCR_DatasetExtension Filter of the report dataset extensions to export.

wgFncExportDataSetExtensions

Exports Dataset extensions for the reports in the filter as XML to a BLOB.

Parameters

Type Name Description
Record "wDCR_DatasetExtension" vRecwDCR_DatasetExtension Filter of the report dataset extensions to export.
Codeunit "Temp Blob" vCduTempBlob The TempBlob to write the Dataset extensions to.

wgFncExportOriginalDataSetXml

Opens a report's request page and exports the original XML report dataset.

Parameters

Type Name Description
Integer pReportID Report ID
Text pXmlParameters The parameters to use (can also be empty).

Returns

Type Description
Text Dataset XML File Name

wgFncGetCustomizedDataSetXml

Applies Dataset extensions to an XML report dataset.

Parameters

Type Name Description
Integer pReportID Report ID
Codeunit "Temp Blob" vCduTempBlobXmlDataset The Temp Blob containing the original XML report dataset.

Returns

Type Description
Boolean true iff there were Dataset extensions to apply.

wgFncGetCustomizedReportFiles

Applies Dataset extensions to a report's WordXMLPart and XML dataset.

Parameters

Type Name Description
Integer pReportID Report ID
Text vWordXmlPart The report's WordXMLPart.
Codeunit "Temp Blob" vCduTempBlobXmlDataset The Temp Blob containing the original XML report dataset.

Returns

Type Description
Boolean true iff there were Dataset extensions to apply.

wgFncGetCustomizedWordXmlPart

Applies Dataset extensions to a report's WordXMLPart.

Parameters

Type Name Description
Integer pReportID Report ID

Returns

Type Description
Text true iff there were Dataset extensions to apply.

wgFncGetCustomizedWordXmlPart

Applies Dataset extensions to a report's WordXMLPart.

Parameters

Type Name Description
Integer pReportID Report ID
Text vWordXmlPart The report's WordXMLPart.

Returns

Type Description
Boolean true iff there were Dataset extensions to apply.

wgFncGetDocumentCreatorDatasetExtensionsFileExtension

Returns the file extension for Document Creator Dataset Extensions files.

Returns

Type Description
Text[3] Document Creator Dataset Extensions file extension.

wgFncGetDocumentCreatorDataSetExtensionsFileFilter

Returns the file filter for Document Creator Dataset Extensions files.

Returns

Type Description
Text Document Creator Dataset Extensions file filter.

wgFncGetReportNodes

Gets the report nodes as a record set.

Parameters

Type Name Description
Integer pReportID Report ID
Record "wDCR_DatasetNode" temporary vRecTempwDCR_DatasetNode The temporary record set that the nodes are written to.
Boolean pDataItemsOnly Whether to include the Data Item nodes only.
Boolean pIncludeCustom Whether to include the Custom nodes.

wgFncGetReportNodes

Gets the report nodes as a record set.

Parameters

Type Name Description
Integer pReportID Report ID
Record "wDCR_DatasetNode" temporary vRecTempwDCR_DatasetNode The temporary record set that the nodes are written to.
Boolean pDataItemsOnly Whether to include the Data Item nodes only.
Boolean pIncludeCustom Whether to include the Custom nodes.
Boolean pIncludeLayoutUsageDetails Whether to include details about whether the nodes are used in layouts.

wgFncGetReportNodes

Gets the report nodes as a record set, together with details on whether they are used by a specific report layout.

Parameters

Type Name Description
Integer pReportID Report ID
Record "Report Layout List" pRecSelectedReportLayout The report layout.
Record "wDCR_DatasetNode" temporary vRecTempwDCR_DatasetNode The temporary record set that the nodes are written to.
Boolean pDataItemsOnly Whether to include the Data Item nodes only.
Boolean pIncludeCustom Whether to include the Custom nodes.

wgFncImportDataSetExtensions

Imports Dataset extensions for reports from an XML file.

wgFncImportDataSetExtensions

Imports Dataset extensions for reports from a BLOB that contains the extensions in XML format.

Parameters

Type Name Description
Codeunit "Temp Blob" pCduTempBlob The TempBlob to read the Dataset extensions from.

wgFncSelectFieldsForCustomColumns

Select fields to add custom columns for in a report object's dataset extension.

Parameters

Type Name Description
Integer pReportID The ID of the report object.

Returns

Type Description
Boolean true iff the user selected fields to be added as custom columns