The only problem I can see here is the "&&" after "defined($vinfo)".



Urban, Robert (, externer Mitarbeiter) wrote:
> Hmm. Thanks for your answers.  Unfortunately, I just compiled/installed v1.91 
> (aside:
> "perl Makefile.PL PREFIX=/some/other/path" doesn't work) and tried my script 
> again. Ars_GetVUI() is still returning undef :(  Here's my code:
> 
> --snip--
> my $ARS = ars_Login($server, $username, $password);
> defined($ARS) || die "connection failed\nars-error:\n$ars_errstr\n";
> 
> print "connect OK\n";
> 
> my %fields = ars_GetFieldTable($ARS, $schema);
> %fields || die "getFieldTable failed: $ars_errstr";
> 
> exists($fields{$field}) || die "field [$field] does not exist\n";
> 
> my $id = $fields{$field};
> print "id=[$id]\n";
> my $finfo = ars_GetField($ARS, $schema, $fields{$field}) || die $ars_errstr;
> my @di_list = @{ $finfo->{displayInstanceList}->{dInstanceList} };
> foreach my $di (@di_list) {
>     print "vui = [$di->{vui}]\n";
>     my $vinfo = ars_GetVUI($ARS, $schema, $di->{vui});
>     defined($vinfo) && die "GetVUI failed: $ars_errstr";
>     print "VUI dump:\n", Dumper($vinfo), "\n--done--\n";
> }
> --snip--
> 
> ...and the output:
> 
> --snip--
> connect OK
> id=[536870939]
> vui = [536870912]
> GetVUI failed:  at ./get-vui-info.pl line 58.
> --snip--
> 
> So you can see, the rest is working ok...
> 
> It's Friday evening here, 18:35, so I'm heading home, but I read (and 
> respond) on Monday to mails.
> 
> Cheers,
> 
> rob urban
> 
> -----Ursprüngliche Nachricht-----
> Von: Thilo Stapff [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 26. September 2008 18:17
> An: ARSperl User Discussion
> Betreff: Re: [Arsperl-users] ars_GetListVUI not working?
> 
> The problem is definitely a bug in 1.84 (and probably earlier versions). 
> Versions 1.85 or higher should work fine.
> 
> Thilo
> 
> 
> LJ Longwing wrote:
>> Could you try upgrading to 1.90 or 1.91 and see if you still have problems? 
>>
>> -----Original Message-----
>> From: Urban, Robert (, externer Mitarbeiter)
>> [mailto:[EMAIL PROTECTED] 
>> Sent: Friday, September 26, 2008 9:38 AM
>> To: ARSperl User Discussion
>> Subject: Re: [Arsperl-users] ars_GetListVUI not working?
>>
>> Oops, sorry.  It's v1.84.
>>
>> rob urban 
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Thilo Stapff [mailto:[EMAIL PROTECTED]
>> Gesendet: Freitag, 26. September 2008 12:40
>> An: ARSperl User Discussion
>> Betreff: Re: [Arsperl-users] ars_GetListVUI not working?
>>
>> Hi Rob,
>>
>> I asked about the version of arsperl.
>>
>>
>> Thilo
>>
>>
>> Urban, Robert (, externer Mitarbeiter) wrote:
>>> Hi Thilo,
>>>
>>> I'm using v7.1 patch 004.
>>>
>>> rob urban
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Thilo Stapff [mailto:[EMAIL PROTECTED]
>>> Gesendet: Donnerstag, 25. September 2008 20:24
>>> An: ARSperl User Discussion
>>> Betreff: Re: [Arsperl-users] ars_GetListVUI not working?
>>>
>>> It should definitely work this way. What version of ARSperl are you using?
>>>
>>>
>>>
>>> Urban, Robert (, externer Mitarbeiter) wrote:
>>>> Hi Folks,
>>>>  
>>>> I'm trying to get
>>>>  
>>>>     (@views = ars_GetListVUI($ARS, $schema, 0)) || die $ars_errstr;
>>>>  
>>>> to work.    I've also tried:
>>>>  
>>>>     (@views = ars_GetListVUI($ARS, $schema)) || die $ars_errstr;
>>>>  
>>>> Both return an empty list, but $ars_errstr is also empty.  $ARS and 
>>>> $schema are valid.
>>>>  
>>>> Does this not work, or is there some magical incantation?
>>>>  
>>>> thanks,
>>>>  
>>>> rob urban
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> ---
>>>>
>>>> ---------------------------------------------------------------------
>>>> ---- This SF.Net email is sponsored by the Moblin Your Move 
>>>> Developer's challenge Build the coolest Linux based applications with 
>>>> Moblin SDK & win great prizes Grand prize is a trip for two to an 
>>>> Open Source event anywhere in the world 
>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> ---
>>>>
>>>>
>>>>
>>>> --
>>>> Arsperl-users mailing list
>>>> Arsperl-users@arsperl.org
>>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>> ----------------------------------------------------------------------
>>> --- This SF.Net email is sponsored by the Moblin Your Move Developer's 
>>> challenge Build the coolest Linux based applications with Moblin SDK & 
>>> win great prizes Grand prize is a trip for two to an Open Source event 
>>> anywhere in the world 
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>
>>>
>>> --
>>> Arsperl-users mailing list
>>> Arsperl-users@arsperl.org
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>>
>>> ----------------------------------------------------------------------
>>> --- This SF.Net email is sponsored by the Moblin Your Move Developer's 
>>> challenge Build the coolest Linux based applications with Moblin SDK & 
>>> win great prizes Grand prize is a trip for two to an Open Source event 
>>> anywhere in the world 
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>
>>>
>>> --
>>> Arsperl-users mailing list
>>> Arsperl-users@arsperl.org
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes Grand prize is a trip for two to an Open Source event anywhere in the
>> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>
>>
>> --
>> Arsperl-users mailing list
>> Arsperl-users@arsperl.org
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes Grand prize is a trip for two to an Open Source event anywhere in the
>> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>
>>
>> --
>> Arsperl-users mailing list
>> Arsperl-users@arsperl.org
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>
>>
>> --
>> Arsperl-users mailing list
>> Arsperl-users@arsperl.org
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> --
> Arsperl-users mailing list
> Arsperl-users@arsperl.org
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> --
> Arsperl-users mailing list
> Arsperl-users@arsperl.org
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to