[Arsperl-users] problem with ars_GetListSchema?
Brought to you by:
jeffmurphy
|
From: <ix...@on...> - 2005-04-27 09:37:59
|
Hello all,
( using Remedy server v6.3, ARSPerl v1.83, Solaris 5.8, gcc 2.95.3 )
I'm new to the list ( and to Remedy ). I've been writing some backend code
to tie Remedy in to some of our other production systems with varying degrees
of success ( everything that i really need working works - create, remove and
update of records ) .. i'm walking through the ARSPerl interface trying to see
what I can make use of and can't seem to get
ars_GetListSchema();
to work properly. I don't know if this is due to some ignorance on my part
or whether the function isn't acting quite right. The code I'm currently
using is :
my $connection = ARS->new(
'-server' => 'remedy-server-name',
'-username' => 'remedy-user-name',
'-password' => 'remedy-user-password',
'-catch' => {
ARS::AR_RETURN_ERROR => "main::mycatch",
ARS::AR_RETURN_WARNING => "main::mycatch",
ARS::AR_RETURN_FATAL => "main::mycatch"
},
'-ctrl' => undef,
'-debug' => 0
);
( my @schemas = ARS::ars_GetListSchema( $connection->{'ctrl'}, 0, ARS::AR_LIST_SCHEMA_ALL | ARS::AR_HIDDEN_INCREMENT ) );
print Dumper( \@schemas );
this results in the return of an empty array
i've received other errors with different invocations of the function and
the OO method availableSchemas() returns
fieldPropList is not of type ARPropListPtr at /path/to/perl/lib/perl5/site_perl/5.8.6/sun4-solaris/ARSOOsup.pm line 122.
using the following code
( my @schemas = $connection->availableSchemas(
-changedsince => 0,
-schematype => ARS::AR_LIST_SCHEMA_ALL | ARS::AR_HIDDEN_INCREMENT
) );
has anyone had similar trouble?
( second post coming regarding the query() method )
thanks much for any information!
- tom
|