Skip to content

Codeunit wDCR_CommonReportProperties

A report helper codeunit to set and update common report properties.

Properties

Name Value
Access Public

Methods

wgFncGetFormatRegion

Retrieves the tag of the current format region.

Returns

Type Description
Text[80] Format Region

wgFncGetLanguageCode

Retrieves the code of the current language.

Returns

Type Description
Code[10] Language Code

wgFncGetLanguageID

Retrieves the ID of the current language.

Returns

Type Description
Integer Language ID

wgFncGetReportID

Retrieves the ID of the current report object.

Returns

Type Description
Integer ID of the report object

wgFncSetInitialValues

Initializes this codeunit object with the initial property values of the report object.

Parameters

Type Name Description
Text pCurrReportFormatRegion The initial value of the CurrReport.FormatRegion property.
Integer pCurrReportLanguage The initial value of the CurrReport.Language property.
Text pCurrReportObjectID The value returned by the CurrReport.ObjectID(false) property, i.e., the ID of the report object.
Codeunit "wDCR_TranslationMgt" pCduTranslationMgt The codeunit object instance that is used for translating.

wgFncUpdateFormatRegion

Updates the format region based on the pFormatRegion argument, if applicable. The vCurrFormatRegion parameter will contain the actual value after applying the update.

Parameters

Type Name Description
Text[80] pFormatRegion The new value for the Format Region.
Text[80] vCurrFormatRegion The actual value of the Format Region after running this procedure.

Returns

Type Description
Boolean true if any changes were applied to the Format Region.

wgFncUpdateLanguage

Updates the language based on the pLanguageCode argument, if applicable. The vCurrLanguageID parameter will contain the actual value after applying the update.

Parameters

Type Name Description
Code[10] pLanguageCode The new value for the Language.
Integer vCurrLanguageID The actual value of the Language after running this procedure.

Returns

Type Description
Boolean true if any changes were applied to the Language.

wgFncUpdateLanguage

Updates the language based on the pLanguageCode argument, if applicable. The vCurrLanguageID parameter will contain the actual value after applying the update.

Parameters

Type Name Description
Code[10] pLanguageCode The new value for the Language.
Integer vCurrLanguageID The actual value of the Language ID after running this procedure.
Code[10] vCurrLanguageCode The actual value of the Language Code after running this procedure.

Returns

Type Description
Boolean true if any changes were applied to the Language.