ListTextValues Method
The ListTextValues method evaluates the expression mapped to this proxy from the Definition attribute (see
Definition Attribute) of a corresponding ValueDefinition object (see
MapDefinition Method)—if that expression can be resolved as a list or a single value.
This method has the following syntax:
choicelist = ValueDefinitionProxy.ListTextValues([list=ChoiceList]
[, evalscope=BoundScope][, element=Object])
This method has the following parameters:
list
Specifies a list that will be added to existing items in the list, all of which will be returned in the choicelist
evalscope
Specifies any expressions of the form &(), which will be evaluated using that scope. The default scope for evaluations is the localscope of the caller.
element
Specifies any expressions of the form &(()), which will be evaluated using the tagged values held by that element
Regardless of the original data type, the output values (which will be in the list's EnumText attribute) are varchar.
Note: If the choicelist is mapped to a ChoiceField of the appropriate data type, values selected from that ChoiceField will be of the specified data type.
The method returns a choicelist. If no list can be generated from the definition, the method returns an empty list.
For more information about the types of definitions this method handles, see the
ValueDefinition Class.