Skip to content

Codeunit WSB_CFCalculateCustomField

Exposes procedures to calculate the value of a calculated custom field.

Properties

Name Value
Access Public

Methods

wgFncCalculateCustomFieldBooleanValue

Calculates the field value of a custom calculated field of data type boolean.

Parameters

Type Name Description
RecordRef pRecRefCustomFieldEntityTable The custom field entity table record.
Integer pCustomFieldNo The custom field number (1 - 10).
Boolean vResult The value.

Returns

Type Description
Boolean true if the value was calculated successfully.

wgFncCalculateCustomFieldCodeValue

Calculates the field value of a custom calculated field of data type code.

Parameters

Type Name Description
RecordRef pRecRefCustomFieldEntityTable The custom field entity table record.
Integer pCustomFieldNo The custom field number (1 - 10).
Code[20] vResult The value.

Returns

Type Description
Boolean true if the value was calculated successfully.

wgFncCalculateCustomFieldDateValue

Calculates the field value of a custom calculated field of data type date.

Parameters

Type Name Description
RecordRef pRecRefCustomFieldEntityTable The custom field entity table record.
Integer pCustomFieldNo The custom field number (1 - 10).
Date vResult The value.

Returns

Type Description
Boolean true if the value was calculated successfully.

wgFncCalculateCustomFieldDecimalValue

Calculates the field value of a custom calculated field of data type decimal.

Parameters

Type Name Description
RecordRef pRecRefCustomFieldEntityTable The custom field entity table record.
Integer pCustomFieldNo The custom field number (1 - 10).
Decimal vResult The value.

Returns

Type Description
Boolean true if the value was calculated successfully.

wgFncCalculateCustomFieldIntegerValue

Calculates the field value of a custom calculated field of data type integer.

Parameters

Type Name Description
RecordRef pRecRefCustomFieldEntityTable The custom field entity table record.
Integer pCustomFieldNo The custom field number (1 - 10).
Integer vResult The value.

Returns

Type Description
Boolean true if the value was calculated successfully.

wgFncCalculateCustomFieldTextValue

Calculates the field value of a custom calculated field of data type text.

Parameters

Type Name Description
RecordRef pRecRefCustomFieldEntityTable The custom field entity table record.
Integer pCustomFieldNo The custom field number (1 - 10).
Text[255] vResult The value.

Returns

Type Description
Boolean true if the value was calculated successfully.

wgFncCalculateCustomFieldValue

Calculates the field value of a custom calculated field with the specified data type.

Parameters

Type Name Description
RecordRef pRecRefCustomFieldEntityTable The custom field entity table record.
Integer pCustomFieldNo The custom field number (1 - 10).
Enum "WSB_CFDataType" pDataType The data type of the custom field.
Variant vResult The value.

Returns

Type Description
Boolean true if the value was calculated successfully.