Codeunit WSB_EnumInspector
Exposes procedure to help with looking up enum table fields and their members/possible values.
Properties
Methods
wgFncGetEnumFieldOrdinalValues
Gets a list of the valid values for an enum table field.
Parameters
Type |
Name |
Description |
Integer |
pTableNo |
The ID of the table containing the enum table field. |
Integer |
pFieldNo |
The field number of the enum table field. |
List |
vValidEnumValues |
The list of valid values. |
Returns
Type |
Description |
Boolean |
true if the valid values for the field could be retrieved successfully. |
wgFncGetEnumFieldOrdinalValues
Gets a list of the valid values for an enum table field.
Parameters
Type |
Name |
Description |
FieldRef |
pFieldRef |
The enum table field. |
List |
vValidEnumValues |
The list of valid values. |
Returns
Type |
Description |
Boolean |
true if the valid values for the field could be retrieved successfully. |
wgFncGetEnumFieldValuesAsText
Gets a text representation of the valid values for an enum table field.
Parameters
Type |
Name |
Description |
Integer |
pTableNo |
The ID of the table containing the enum table field. |
Integer |
pFieldNo |
The field number of the enum table field. |
Text |
vValidEnumValuesAsText |
The text representation of the valid values. |
Returns
Type |
Description |
Boolean |
true if the valid values for the field could be retrieved successfully. |
wgFncGetEnumFieldValuesAsText
Gets a text representation of the valid values for an enum table field.
Parameters
Type |
Name |
Description |
FieldRef |
pFieldRef |
The enum table field. |
Text |
vValidEnumValuesAsText |
The text representation of the valid values. |
Returns
Type |
Description |
Boolean |
true if the valid values for the field could be retrieved successfully. |
wgFncGetEnumMembersForField
Gets the enum members for a table field.
Parameters
Type |
Name |
Description |
FieldRef |
pFieldRef |
The table field to get the enum members for. |
Record "WSB_EnumFieldMember" |
vRecWSB_EnumFieldMember |
The resulting temporary record set with the enum field members for the table field. |
wgFncIsValidEnumFieldValue
Determines whether the specified value is a valid value for the enum field.
Parameters
Type |
Name |
Description |
Integer |
pTableNo |
The ID of the table containing the enum field. |
Integer |
pFieldNo |
The field number of the enum field. |
Integer |
pOrdinalValue |
The ordinal value of the enum value, i.e., the integer value |
Returns
Type |
Description |
Boolean |
true if the specified value is a valid value for the enum table field. |
wgFncIsValidEnumFieldValue
Determines whether the specified value is a valid value for the enum field.
Parameters
Type |
Name |
Description |
FieldRef |
pFieldRef |
The enum table field. |
Integer |
pOrdinalValue |
The ordinal value of the enum value, i.e., the integer value |
Returns
Type |
Description |
Boolean |
true if the specified value is a valid value for the enum table field. |
wgFncLookupEnumField
Opens a field lookup page to select an enum/option table field.
Parameters
Type |
Name |
Description |
Record "Field" |
vRecField |
The selected field, if any. |
Returns
Type |
Description |
Boolean |
true if a field was selected. |
wgFncLookupEnumFieldOrdinalValue
Opens a page to lookup an enum value given a table number and field number.
Parameters
Type |
Name |
Description |
Integer |
pTableNo |
The ID of the table containing the enum field. |
Integer |
pFieldNo |
The field number of the enum field. |
Integer |
vEnumValueOrdinal |
The ordinal value of the selected enum value, i.e., the integer value |
Returns
Type |
Description |
Boolean |
true if an enum value was selected on the lookup page. |
wgFncLookupEnumFieldOrdinalValue
Opens a page to lookup an enum value given a table number and field number.
Parameters
Type |
Name |
Description |
FieldRef |
pFieldRef |
The enum table field. |
Integer |
vEnumValueOrdinal |
The ordinal value of the selected enum value, i.e., the integer value |
Returns
Type |
Description |
Boolean |
true if an enum value was selected on the lookup page. |
wgFncViewEnumMembers
View the members of an enum table field in a list page.
Parameters
Type |
Name |
Description |
Integer |
pTableNo |
The Table No. of the field. |
Integer |
pFieldNo |
The Field No. of the field. |
wgFncViewEnumMembers
View the members of an enum table field in a list page.
Parameters
Type |
Name |
Description |
FieldRef |
pFieldRef |
The enum table field. |
wgFncViewEnumMembers
Shows a lookup to select an enum table field and shows its members in a list page.