Re: [Arsperl-users] How to get enumerated value mapping for a field (non OO)

2008-12-04 Thread Michiel Beijen
8 at 3:13 PM, Urban, Robert (, externer Mitarbeiter) <[EMAIL PROTECTED]> wrote: > Franklin Lee wrote: >> Subject: [Arsperl-users] How to get enumerated value mapping for a field >> (non OO) >> >> For a given field of an enumerated data type, I want to create a m

Re: [Arsperl-users] How to get enumerated value mapping for a field (non OO)

2008-12-04 Thread Urban, Robert (, externer Mitarbeiter)
Franklin Lee wrote: > Subject: [Arsperl-users] How to get enumerated value mapping for a field (non > OO) > > 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 ca

Re: [Arsperl-users] How to get enumerated value mapping for a field (non OO)

2008-12-03 Thread jeff murphy
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 wa

[Arsperl-users] How to get enumerated value mapping for a field (non OO)

2008-12-03 Thread Franklin Lee
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