Skip to content

Codeunit wDCR_LayoutPackageManagement

Provides all implementation related to the flow of Document Creator Layout Packages.

  • A Document Creator Layout Package is a file including a set of custom report layouts, which can be used to easily import/export layouts from/to another database.

Properties

Name Value
Access Public

Methods

wgFncExportLayoutPackage

Exports a layout package for a set of report layout records, prompting the user for a location to save the file.

Parameters

Type Name Description
Record "Report Layout List" vRecReportLayoutList The set of Report Layout records to include in the package.

wgFncExportLayoutPackage

Creates a layout package file and writes the contents to a TempBlob.

Parameters

Type Name Description
Record "Report Layout List" vRecReportLayoutList The set of Report Layout records to include in the package.
Codeunit "Temp Blob" vCduTempBlob The TempBlob to write the Layout Package file contents to.

wgFncGetLayoutPackageExtFilter

Returns the file extension filter for Document Creator Layout Packages.

Returns

Type Description
Text Document Creator Layout Package file extension filter.

wgFncGetLayoutPackageFileExtension

Returns the file extension for Document Creator Layout Package files.

Returns

Type Description
Text[4] Document Creator Layout Package file extension.

wgFncGetLayoutPackageFileFilter

Returns the file filter for Document Creator Layout Packages.

Returns

Type Description
Text Document Creator Layout Packages file filter.

wgFncImportLayoutPackage

Imports a layout package, prompting the user for the file. The original version of each layout is archived in the custom report layout archive before the import (if any with the same ID already exist).

wgFncImportLayoutPackage

Imports the layouts from a layout package contained in a TempBlob. The original version of each layout is archived in the custom report layout archive before the import (if any with the same ID already exist).

Parameters

Type Name Description
Codeunit "Temp Blob" pCduTempBlob The TempBlob to read the layout package file contents from.

wlEvpOnAfterGetDefaultLayoutPackageFileName

Allows to change the default layout package file name.

Parameters

Type Name Description
Text vLayoutPackageDefaultFileName THe default layout package file name.