Topic Options
Rate This Topic
#59533 - 12/24/01 07:25 PM ars_GetEntry problem
sam_5001 Offline
Stealth Member

Registered: 10/01/01
Posts: 8

Hi All,

I am having problem using ars_GetEntry() .
Can anyone help me .
I am using ..

%vals = ars_GetEntry($ctrl, $schema, $entryid, $diaryfield_fid) || die
$ars_errstr;

foreach $diary_entry (@{$vals{$diaryfield_fid}}) {
print "Inside Foreach... \n";
print "$diary_entry->{timestamp}\n";
print "$diary_entry->{user}\n";
print "$diary_entry->{value}\n";
}
It is not printing anything.
I know that the diary field has some values.

Thanks a lot.

Sam

_____
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

_____________________________




Top
#59534 - 12/27/01 05:27 PM Re: ars_GetEntry problem [Re: ishwardath maharaj]
peterm2 Offline
Stealth Member

Registered: 12/04/01
Posts: 42

It looks ok... Don't know that you can include the '$diaryfield_fid' in
the call... Try to leave that out and call back all of the data.

I would :

Verify that the script user has access to read the data

Check by reporting other fields as well

It's common that permissioning would be the cause, since it does not actually
report an error if it cannot read a field (it leaves the variable empty).

P


On Tue, 25 Dec 2001, Sam Thapa wrote:

> **
>
> Hi All,
>
> I am having problem using ars_GetEntry() .
> Can anyone help me .
> I am using ..
>
> %vals = ars_GetEntry($ctrl, $schema, $entryid, $diaryfield_fid) || die
> $ars_errstr;
>
> foreach $diary_entry (@{$vals{$diaryfield_fid}}) {
> print "Inside Foreach... \n";
> print "$diary_entry->{timestamp}\n";
> print "$diary_entry->{user}\n";
> print "$diary_entry->{value}\n";
> }
> It is not printing anything.
> I know that the diary field has some values.
>
> Thanks a lot.
>
> Sam
>
> _____
> Join the world’s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
> _____________________________
>
>
>

_____________________________




Top


Moderator:  Matt Reinfeldt