Re: [Arsperl-users] Problem with ars_GetListContainer
Brought to you by:
jeffmurphy
|
From: Ian T. <I.D...@op...> - 2006-02-20 09:01:34
|
Tyrrell, Peter wrote:
> Hi All,
>
> Is anybody else having problems with ars_GetListContainer? It only seems to
> return the hash for a single item instead of the array of hashes I am
> expecting.
>
> my $what = ars_GetListContainer($c->ctrl(), 0,
> &ARS::AR_HIDDEN_INCREMENT,
> &ARS::ARCON_GUIDE,
> &ARS::ARCON_APP)
> || die "ars_GetListContainer error: $ars_errstr\n";
>
> print ref($what) . "\n";
>
> The above call tells me it's a HASH, and decoding it's contents gives:
>
> (HASH)
> 0 containerName:EWebContS
> 0 containerType:app
> 0 ownerObjList: (ARRAY)
>
> I have a feeling that I am just getting back the last container instead of
> the list.
>
> I'm using the precompiled ARSperl1.84 (API 8) under Windows 2K with
> ActiveState Perl5.008007 Build 813 against a ARS 6.00.01.
>
> Any help would be appreciated.
>
>
> Petet
Peter,
If you have a look at the documentation it says:
*On success*
Returns an array of HASH references.
*On failure*
Returns undef.
Example:
(@a = ars_GetListContainer($ctrl, 0, &ARS::AR_HIDDEN_INCREMENT, ARCON_GUIDE)) ||
die "$ars_errstr";
Hope this helps...
Ian
------------------------------------------------------------------------
Ian Trimnell, AR System Lead Developer (amongst other jobs),
Specialist Support & Information Team, Academic & Administrative
Computing Service
Open University, MILTON KEYNES, UK
Phone: 01908 653741 web: http://www.open.ac.uk/
|