Skip to content

Codeunit wDCR_DesignFileMgt

Provides all implementation related to the flow of Document Creator Design Files and Support Files.

  • A Document Creator Design File is an archive including the layout, wordxmlpart, design settings (and optionally a dataset), which can be opened and edited in the Document Creator Report Designer.

  • A Document Creator Support File is an archive including the layout, wordxmlpart and a dataset for a report, which can be run from any installation from the Document Creator Design/Support File Analysis page.

Properties

Name Value
Access Public

Methods

wgFncExportDesignFile(Report Layout List, Boolean)

Creates a Document Creator Design File from a Report Layout List record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The Report Layout List record
Boolean pExportWithData Specifies whether a dataset should be included in the Design file.

wgFncExportDesignFile(Report Layout List, Codeunit::System#Utilities#Temp Blob@):Boolean

Creates a Document Creator Design File from a Report Layout List record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The Report Layout List record
Codeunit "Temp Blob" vCduTempBlobDesignFile The Temp Blob that will contain the contents of the resulting design file.

wgFncExportDesignFile(Report Layout List, Text, Codeunit::System#Utilities#Temp Blob@):Boolean

Creates a Document Creator Design File from a Report Layout List record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The Report Layout List record
Text pXmlParameters The XML parameters to use to generate the dataset for the design file.
Codeunit "Temp Blob" vCduTempBlobDesignFile The Temp Blob that will contain the contents of the resulting design file.

wgFncExportDesignFile(Custom Report Layout, Boolean)

Obsolete

Document Creator layouts have been moved to the report layout system tables. 2.0.0.0

Creates a Document Creator Design File from a Custom Report Layout record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Custom Report Layout" pRecCustomRptLayout The Custom Report Layout record
Boolean pExportWithData Specifies whether a dataset should be included in the Design file.

wgFncExportDesignFile(Custom Report Layout, Codeunit::System#Utilities#Temp Blob@):Boolean

Obsolete

Document Creator layouts have been moved to the report layout system tables. 2.0.0.0

Creates a Document Creator Design File from a Custom Report Layout record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Custom Report Layout" pRecCustomRptLayout The Custom Report Layout record
Codeunit "Temp Blob" vCduTempBlobDesignFile The Temp Blob that will contain the contents of the resulting design file.

wgFncExportDesignFile(Custom Report Layout, Text, Codeunit::System#Utilities#Temp Blob@):Boolean

Obsolete

Document Creator layouts have been moved to the report layout system tables. 2.0.0.0

Creates a Document Creator Design File from a Custom Report Layout record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Custom Report Layout" pRecCustomRptLayout The Custom Report Layout record
Text pXmlParameters The XML parameters to use to generate the dataset for the design file.
Codeunit "Temp Blob" vCduTempBlobDesignFile The Temp Blob that will contain the contents of the resulting design file.

wgFncExportDesignFile(Tenant Report Layout, Boolean)

Creates a Document Creator Design File from a Tenant Report Layout record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Tenant Report Layout" pRecTenantReportLayout The Tenant Report Layout record
Boolean pExportWithData Specifies whether a dataset should be included in the Design file.

wgFncExportDesignFile(Tenant Report Layout, Codeunit::System#Utilities#Temp Blob@):Boolean

Creates a Document Creator Design File from a Tenant Report Layout record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Tenant Report Layout" pRecTenantReportLayout The Tenant Report Layout record
Codeunit "Temp Blob" vCduTempBlobDesignFile The Temp Blob that will contain the contents of the resulting design file.

wgFncExportDesignFile(Tenant Report Layout, Text, Codeunit::System#Utilities#Temp Blob@):Boolean

Creates a Document Creator Design File from a Tenant Report Layout record. Optionally, the report will open a request page to run the report and generate a dataset to include in the file.

Parameters

Type Name Description
Record "Tenant Report Layout" pRecTenantReportLayout The Tenant Report Layout record
Text pXmlParameters The XML parameters to use to generate the dataset for the design file.
Codeunit "Temp Blob" vCduTempBlobDesignFile The Temp Blob that will contain the contents of the resulting design file.

wgFncExportSupportFile(Report Layout List)

Creates a Document Creator Support File from a Report Layout List record.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The Report Layout List record

wgFncExportSupportFile(Report Layout List, Text, Codeunit::System#Utilities#Temp Blob@)

Creates a Document Creator Support File from a Report Layout List record.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The Report Layout List record
Text pXmlParameters The XML parameters to use to generate the dataset for the support file.
Codeunit "Temp Blob" vCduTempBlobSupportFile The Temp Blob that will contain the contents of the resulting support file.

wgFncExportSupportFile(Custom Report Layout)

Obsolete

Document Creator layouts have been moved to the report layout system tables. 2.0.0.0

Creates a Document Creator Support File from a Custom Report Layout record.

Parameters

Type Name Description
Record "Custom Report Layout" pRecCustomRptLayout The Custom Report Layout record

wgFncExportSupportFile(Custom Report Layout, Text, Codeunit::System#Utilities#Temp Blob@)

Obsolete

Document Creator layouts have been moved to the report layout system tables. 2.0.0.0

Creates a Document Creator Support File from a Custom Report Layout record.

Parameters

Type Name Description
Record "Custom Report Layout" pRecCustomRptLayout The Custom Report Layout record
Text pXmlParameters The XML parameters to use to generate the dataset for the support file.
Codeunit "Temp Blob" vCduTempBlobSupportFile The Temp Blob that will contain the contents of the resulting support file.

wgFncGetDesignSettings(Report Layout List, Integer):JsonObject

Obsolete

Use wgFncGetDesignSettings(pRecReportLayoutList: Record "Report Layout List"; pDataLocaleID: Integer; var vJsonDesignSettings: JsonObject): Boolean instead 2.54.0.0

Gets the design settings as a JSON object for a Document Creator report layout.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The report layout.
Integer pDataLocaleID The locale ID/region of the dataset.

Returns

Type Description
JsonObject The design settings as a JSON object.

wgFncGetDesignSettings(Report Layout List, Integer, JsonObject@):Boolean

Gets the design settings as a JSON object for a Document Creator report layout.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The report layout.
Integer pDataLocaleID The locale ID/region of the dataset.
JsonObject vJsonDesignSettings The design settings in a JSON object.

Returns

Type Description
Boolean true iff the design settings were retrieved successfully.

wgFncGetDesignSettings(Codeunit::System#Utilities#Temp Blob):JsonObject

Obsolete

Use wgFncGetDesignSettings(pCduTempBlobDesignFile: Codeunit "Temp Blob"; var vJsonDesignSettings: JsonObject): Boolean instead 2.54.0.0

Gets the design settings as a JSON object from a Document Creator Design File (.dcrd).

Parameters

Type Name Description
Codeunit "Temp Blob" pCduTempBlobDesignFile The Temp Blob containing the design file.

Returns

Type Description
JsonObject The design settings as a JSON object.

wgFncGetDesignSettings(Codeunit::System#Utilities#Temp Blob, JsonObject@):Boolean

Gets the design settings as a JSON object from a Document Creator Design File (.dcrd).

Parameters

Type Name Description
Codeunit "Temp Blob" pCduTempBlobDesignFile The Temp Blob containing the design file.
JsonObject vJsonDesignSettings The design settings as a JSON object.

Returns

Type Description
Boolean true iff the design settings could be retrieved successfully

wgFncGetDocumentCreatorDesignFileExtension:Text[4]

Returns the file extension for Document Creator Design Files.

Returns

Type Description
Text[4] Document Creator Design file extension.

wgFncGetDocumentCreatorDesignFileExtFilter:Text

Returns the file extension filter for Document Creator Design Files.

Returns

Type Description
Text Document Creator Design file extension filter.

wgFncGetDocumentCreatorDesignFileFilter:Text

Returns the file filter for Document Creator Design Files.

Returns

Type Description
Text Document Creator Design file filter.

wgFncGetDocumentCreatorSupportFileExtension:Text[4]

Returns the file extension for Document Creator Support Files.

Returns

Type Description
Text[4] Document Creator Support file extension.

wgFncGetDocumentCreatorSupportFileExtFilter:Text

Returns the file extension filter for Document Creator Support Files.

Returns

Type Description
Text Document Creator Support file extension filter.

wgFncGetDocumentCreatorSupportFileFilter:Text

Returns the file filter for Document Creator Support Files.

Returns

Type Description
Text Document Creator Support file filter.

wgFncImportDesignFile(Report Layout List)

Imports a design file into a report layout list record.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The report layout list record to import the design file into.

wgFncImportDesignFile(Custom Report Layout@)

Obsolete

Document Creator layouts have been moved to the report layout system tables. 2.0.0.0

Imports the layout from a Document Creator Design File into a Custom Report Layout record, prompting the user for the design file. The original version of the layout is archived in the custom report layout archive before the import.

Parameters

Type Name Description
Record "Custom Report Layout" vRecCustomReportLayout The Custom Report Layout record to import the layout into.

wgFncImportDesignFile(Tenant Report Layout)

Imports a design file into a tenant report layout record.

Parameters

Type Name Description
Record "Tenant Report Layout" pRecTenantReportLayout The tenant report layout record to import the design file into.

wgFncImportDesignFile(Report Layout List, InStream)

Imports a design file into a report layout list record.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The report layout list record to import the design file into.
InStream pInStreamDesignFile The InStream containing the design file to import.

wgFncImportDesignFile(Tenant Report Layout, InStream)

Imports a design file into a tenant report layout record.

Parameters

Type Name Description
`` pRecTenantReportLayout The tenant report layout record to import the design file into.
`` pInStreamDesignFile The InStream containing the design file to import.

wgFncRunReportRequestPageWithStoredRequestParameters(Integer, Text, Text, Text):Text

Runs the request page with stored parameters.

Parameters

Type Name Description
Integer pReportID Report ID
Text pCompanyName Company Name
Text pUserID User ID
Text pXmlParameters XML request page parameters to use instead of the stored.

Returns

Type Description
Text The XML parameters after closing the request page. Empty if cancelled.

wgFncGetDocumentCreatorDesignFileDatasetEntryLabel:Text

The signature label for the dataset entry in a design/support file.

Returns

Type Description
Text The signature dataset entry label.

wgFncGetDocumentCreatorDesignFileLayoutEntryLabel:Text

The signature label for the layout entry in a design/support file.

Returns

Type Description
Text The signature layout entry label.

wgFncGetDocumentCreatorDesignFileWordXmlPartEntryLabel:Text

The signature label for the wordxmlpart entry in a design/support file.

Returns

Type Description
Text The signature wordxmlpart entry label.