All,

I've been fighting this for a while and I'm afraid I can't see the trees for
the forest now (yes, I know that's bass-ackwards)...

I'm using ARS.pm to access the Remedy product.  One function -
ars_GetField() - returns a reference to a hash, and what I've been trying to
read isn't sinking in as to how to extract that data.

Generally:

        use ARS;

        $server = "server.base.name.com";
        $user = "login";
        $password = "password";
        $schema = "Remedy Form Name";

        ($connect_id = ars_Login($server, $userid, $password)) || die "Can't
login:$ars_errstr\n";

        (%properties = ars_GetField($connect_id, $schema, 8)) || die
$ars_errstr;

8 in the line immediately above is a numerical value referencing a field
(also called "clli"), for those not familiar with the ARS product.  I've
shotgunned numerous paths, this being the most recent (unsuccessful)
technique:

        $r = ${$properties};
        foreach $k (keys %properties)
        {
                $val = @{$properties}{"fieldName"};
                print %$k . ", val = " . $val . "R = " .
@{$properties}{"owner"} . "\n";
        }

fieldName and owner are both actual entries (each a string value) in the
Field Properties Structure ars_GetField() supposedly returns.  How do
extract the values in this reference?  I've been reading Programming Perl
and it's just not sinking in now.

Thanks in advance,
Joe

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to