Codeunit WSB_CFCalculateCustomFieldTask
A codeunit used to run all custom field calculated values calculations in a Page Background Task.
Properties
Methods
wgFncGenerateCalculatedFieldsPageBackgroundTaskParameters
Generates a Page Background Task parameters dictionary with the specified parameters for custom fields calculations.
Parameters
Type |
Name |
Description |
Enum "WSB_CFEntity" |
pEntityType |
The entity type. |
RecordRef |
pRecordRef |
The entity record. |
Boolean |
pBooleanFieldVisible |
Array that specifies visibility of the boolean fields. |
Boolean |
pCodeFieldVisible |
Array that specifies visibility of the code fields. |
Boolean |
pDateFieldVisible |
Array that specifies visibility of the date fields. |
Boolean |
pDecimalFieldVisible |
Array that specifies visibility of the decimal fields. |
Boolean |
pIntegerFieldVisible |
Array that specifies visibility of the integer fields. |
Boolean |
pTextFieldVisible |
Array that specifies visibility of the text fields. |
Returns
Type |
Description |
Dictionary |
A dictionary with the Page Background Task parameters. |
wgFncGenerateRoleCenterPageBackgroundTaskParameters
Generates a Page Background Task parameters dictionary with the specified parameters for custom role center tile calculations.
Parameters
Type |
Name |
Description |
Boolean |
pDecimalFieldVisible |
Array that specifies visibility of the decimal fields. |
Boolean |
pIntegerFieldVisible |
Array that specifies visibility of the integer fields. |
Returns
Type |
Description |
Dictionary |
A dictionary with the Page Background Task parameters. |
wgFncGetCalculatedFieldValuesFromPageBackgroundTaskResult
Gets the calculated values from the Page Background Task result for calculated fields.
Parameters
Type |
Name |
Description |
Dictionary |
pPageBackgroundTaskResult |
The dictionary with the Page Background Task result. |
Code[20] |
vCalculatedCodeFieldValues |
The calculated code values. |
Text |
vCalculatedTextFieldValues |
The calculated text values. |
Integer |
vCalculatedNumberFieldValues |
The calculated integer values. |
Decimal |
vCalculatedDecimalFieldValues |
The calculated decimal values. |
Date |
vCalculatedDateFieldValues |
The calculated date values. |
Boolean |
vCalculatedBooleanFieldValues |
The calculated boolean values. |
wgFncGetCalculatedRoleCenterValuesFromPageBackgroundTaskResult
Gets the calculated values from the Page Background Task result for calculated fields.
Parameters
Type |
Name |
Description |
Dictionary |
pPageBackgroundTaskResult |
The dictionary with the Page Background Task result. |
Integer |
vCalculatedNumberFieldValues |
The calculated integer values. |
Decimal |
vCalculatedDecimalFieldValues |
The calculated decimal values. |
wgFncGetDefaultPageBackgroundTaskTimeout
Retrieves the default page background task time out value for Custom Fields calculations.
Returns
Type |
Description |
Integer |
The default time out. |
wgFncGetEntityTableIDParameterName
Gets the Page Background Task parameter name for the entity table ID.
Returns
Type |
Description |
Text |
Parameter name |
wgFncGetEntityTypeParameterName
Gets the Page Background Task parameter name for the entity type.
Returns
Type |
Description |
Text |
Parameter name |
wgFncGetFieldValueResultName
Gets the Page Background Task result name for a calculated value with specified data type and number.
Parameters
Type |
Name |
Description |
Enum "WSB_CFDataType" |
pDataType |
The datatype. |
Integer |
pCustomFieldNo |
The custom field number. |
Returns
Type |
Description |
Text |
Result name. |
wgFncGetFieldVisibilityParameterName
Gets the Page Background Task parameter name for visibility of a field/tile with specified data type and number.
Parameters
Type |
Name |
Description |
Enum "WSB_CFDataType" |
pDataType |
The datatype. |
Integer |
pCustomFieldNo |
The custom field number. |
Returns
Type |
Description |
Text |
Parameter name. |
wgFncGetRecordPositionParameterName
Gets the Page Background Task parameter name for the record position (primary key values).
Returns
Type |
Description |
Text |
Parameter name |