Skip to content

Codeunit WSB_BRGCFCalculateCustomField

A codeunit that exposes procedures to calculate the value for calculated custom fields without a direct dependency on the Apportunix Custom Fields extension. It exposes the same procedures as WSB_CFCalculateCustomField but the request is handled by an event subscriber in the Apportunix Custom Fields extension.

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).
FieldType pDataType The data type of the custom field.
Variant vResult The value.

Returns

Type Description
Boolean true if the value was calculated successfully.