Skip to content

Codeunit wDCR_Setup

Provides functions used for setting up Document Creator.

Properties

Name Value
Access Public

Methods

wgFncDownloadDesigner

Opens a link to download the Document Creator Designer.

wgFncExportDefaultLayout

Exports the Default Layout from the Document Creator Setup, prompting the user for a location to save the file.

wgFncExportDefaultLayout(Codeunit::System#Utilities#Temp Blob@)

Gets the contents of the Default Layout from the Document Creator Setup and writes them to the passed TempBlob.

Parameters

Type Name Description
Codeunit "Temp Blob" vCduTempBlob The TempBlob to write the layout to.

wgFncGetDefaultExportProfileCode:Code[10]

Gets the code of the default export profile as configured in the Document Creator Setup. If no default export profile exists yet, it is created and the Document Creator Setup is updated accordingly.

Returns

Type Description
Code[10] The code of the default Document Creator Export Profile.

wgFncGetSessionLocaleID:Integer

Gets the locale ID of the culture of the current session.

Returns

Type Description
Integer Locale ID of the culture of the current session.

wgFncImportDefaultLayout

Imports a layout into the Document Creator Setup that will be used as the Default Layout, prompting the user for a file.

wgFncImportDefaultLayout(Codeunit::System#Utilities#Temp Blob)

Imports a layout file from a Blob into the Document Creator Setup that will be used as the Default Layout.

Parameters

Type Name Description
Codeunit "Temp Blob" pCduTempBlob The Blob containing the layout to import.

wgFncSetStandardDefaultLayout

Resets the Default Layout in the Document Creator Setup to the standard default layout.

Methods

wgFncGetOrInit

Gets the setup records or inserts it if it does not exist yet.

wgFncGetOrInit(Boolean)

Gets the setup records or inserts it if it does not exist yet.

Parameters

Type Name Description
`` pErrorIfDisabled Whether or not to throw an error if Enabled = false.