Skip to content

Codeunit WSB_BRGCustomFields

A codeunit that exposes procedures to perform Apportunix Custom Fields related actions when the extension is installed without a direct dependency on it.

Properties

Name Value
Access Public

Methods

wgFncGetCustomFieldsDefinitionsPageID

Gets the ID of the "Custom Fields Definitions" page.

Returns

Type Description
Integer The page ID

wgFncGetSupportedEntityTableIDFilter

Gets a table ID filter for all tables supported by the "Apportunix Custom Fields" extension.

Parameters

Type Name Description
Text vEntityTableIDFilter The table ID filter

Returns

Type Description
Boolean true if successful

wgFncGetSupportedEntityTableIDs

Gets a list of all tables supported by the "Apportunix Custom Fields" extension.

Returns

Type Description
List The list of table IDs

wgFncIsCalculatedValueCustomField

Retrieves whether the field from specified table and specified field number is a calculated Apportunix Custom Fields field.

Parameters

Type Name Description
Integer pTableID The ID of the table.
Integer pFieldNo The field number of the table field.
Integer vCustomFieldNo The custom field number.

Returns

Type Description
Boolean true if the field is a calculated Apportunix Custom Fields field

wgFncIsCustomField

Retrieves whether the field from specified table and specified field number is an Apportunix Custom Fields field.

Parameters

Type Name Description
Integer pTableID The ID of the table.
Integer pFieldNo The field number of the table field.
Integer vCustomFieldNo The custom field number.
Text vCustomFieldName The custom field name.

Returns

Type Description
Boolean true if the field is an Apportunix Custom Fields field

wgFncIsCustomFieldsInstalled

Retrieves whether the Apportunix Custom Fields extension is installed.

Returns

Type Description
Boolean true if the Apportunix Custom Fields extension is installed

wgFncIsCustomFieldsInstalled

Retrieves whether the Apportunix Custom Fields extension is installed.

Parameters

Type Name Description
Guid vAppID The App ID (GUID) of the Apportunix Custom Fields extension.

Returns

Type Description
Boolean true if the Apportunix Custom Fields extension is installed

wgFncSelectFields

Opens a page to select custom fields and retrieve the table ID, table field ID and custom field name in a temporary record set. The "Field Name" will be filled with the Custom Field Name rather than the table field name. If the action is canceled, then the temporary record set will be empty.

Parameters

Type Name Description
Integer pTableID The ID of the table to filter the selectable fields to.
Record "Field" temporary vRecTempSelectedField The temporary record set with the selected fields, if any.