Posted on 2009-03-02 09:24:50-08 by mbeijen in response to 8133
Re: enum customlist

For customlists, the data structure is a bit different: You will find your data under customList.

The email list arsperl-users@arsperl.org is probably the best place to ask (or search) for answers.

Kind regards,

Michiel

sub enum_values ($) { my $limit = $_[0]->{'limit'}; my @values; if (ref($limit) eq 'HASH') { my $h = $limit->{'enumLimits'}; if (ref($h) eq 'HASH') { if (defined($h->{'regularList'} )){ my $z = $h->{'regularList'}; @values = @$z; } elsif (defined($h->{'customList'} )){ foreach my $item (@{$h->{'customList'}}){ $values[$item->{'itemNumber'}] = $item->{'itemName'}; } } } else { @values = @$h; } } else { @values = @$limit; } return @values; }
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.