You might use ars_GetField() to retrieve the internal field structure
description, e.g. like this:
my $fieldStruct = ars_GetField( $ctrl, $formName, $fieldId );
my @enumValues = @{$fieldStruct->{limit}{enumLimits}{regularList}};
or for custom selection fields:
my %enumValues = map {$_->{itemName} => $_->{itemNumber}}
@{$fieldStruct->{limit}{enumLimits}{customList}};
Regards,
Thilo Stapff
Lipford, Willy wrote:
**
I am trying to write a Perl script w/ ars module that reads some records
from a DB and creates new records in a custom form I have. It has a
bunch of selection fields, which in the past I would hard code and
convert the string values in the DB to the integer value that
createEntry wants.
Does anyone have some advice on how I can do this without hardcoding ?
Thanks,
Will
Reston,VA
------------------------------------------------------------------------
This e-mail message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information of Transaction
Network Services. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient,
please contact the sender by reply e-mail and destroy all copies of the
original message.
__20060125_______________________This posting was submitted with HTML in
it___
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers
Are"