Hi Philipp, The quick answer is: don't use the ARS OO interface. You'll have to use the procedural interface and sort out the enum values yourself. Look at ARSOOform.pm. The code that produces your error-message is:
if ($fv->{'dataType'} eq "enum") { if (ref($fv->{'limit'}->{'enumLimits'}) eq "ARRAY") { $enums{$_} = [...@{$fv->{'limit'}->{'enumLimits'}}]; } elsif (exists $fv->{'limit'}->{'enumLimits'}->{'regularList'}) { $enums{$_} = [...@{$fv->{'limit'}->{'enumLimits'}->{'regularList'}}]; } else { print "Sorry. I'm not sure what to do with non-regularLists of enums.\n"; print "(this enum is type \"", keys %{$fv->{'limit'}->{'enumLimits'}}, "\")\n"; print "listStyle = ", $fv->{'limit'}->{'enumLimits'}->{'listStyle'}, "\n"; die; } } } I find Data::Dumper very helpful for quickly getting to know the data-structures returned by various API calls. Cheers, Rob Urban -----Urspr?ngliche Nachricht----- Von: Wollschlegel Philipp [mailto:philipp.wollschle...@alpiq.com] Gesendet: Mittwoch, 25. M?rz 2009 13:09 An: arsperl-users@arsperl.org Betreff: [Arsperl-users] Non-regularLists of enums Greetings List, I am trying to open a form with arsperl 1.91 like so: $form = $connection->openForm(-form=> "CHG:Template"); While some forms work ok with the above method, I get the following error when I try to open the above mentioned form: Died at /usr/local/lib/perl/5.10.0/ARSOOform.pm line 74. new connection object: (servername, username, ) caching field: Authoring Organization datatype: char caching field: z1D Char11 datatype: char caching field: z1D_AssociationType02 datatype: enum Sorry. I'm not sure what to do with non-regularLists of enums. (this enum is type "customList") listStyle = destroying connection object: ars_Logoff called. Am I using the wrong method to open the form? Sincerely, - Philipp Wollschlegel ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users