Re: [Arsperl-users] How to get enumerated value mapping for a field (non OO)
Brought to you by:
jeffmurphy
|
From: jeff m. <jcm...@je...> - 2008-12-03 23:49:31
|
It's under the "limit" key of the field definition.
use Data::Dumper;
$fv = ars_GetField($ctrl, $schema, $fieldID);
if ($fv->{'dataType'} eq "enum") {
print Dumer($fv->{'limit'}), "\n";
}
On Dec 3, 2008, at 6:25 PM, Franklin Lee wrote:
> For a given field of an enumerated data type, I want to create a
> mapping
> from the number to the text label.
>
> I see there is a method getEnumValues() that can be used with an ARS
> object, but I would prefer to use a non-OO function (I am having
> trouble
> getting the connection object to work but ars_Login seems to work).
>
> Any suggestions?
|