GetEnums
You can use this function to retrieve enumeration values and their corresponding labels based on an enum code.
Purpose
The GetEnums function returns enumeration values and labels for a specified enum code.
Syntax
GetEnums("C_FORMULACLASS")
GetEnums("C_FORMULACLASS", "FR-FR")
Return Value
The function returns a dictionary of enum values and their labels.
Arguments
| Part | Description |
|---|---|
| enumCode | The enumeration code. |
| language | Optional. Specifies the language used to retrieve the corresponding enum labels. Default is "EN-US". |
Description
You can use GetEnums to retrieve enumeration values and labels for a given enum code. The function supports language-specific labels when a language code is provided.
Example
Dictionary<string, string> enumsEN = GetEnums("C_FORMULACLASS");
Dictionary<string, string> enumsFR = GetEnums("C_FORMULACLASS", "FR-FR");
Note: The
GetEnums function returns dictionary of enum values and enum labels for the provided enumCode.