[Arsperl-users] ARSPerl newbie: How to list field values from a form?
Brought to you by:
jeffmurphy
|
From: Ravi <ra...@co...> - 2007-08-09 05:31:32
|
Hi:I am trying query a schema and print a fieldname and values for all
records with a qualifying filter. I can't seem to figure out which
function to use and how. This is what I have now and I get 0 records. Is
asr_GetListEntry the right function? Does someone have a sample script
or point me to the right one in the example dir?
$schema = "My:Alarm Base";
$qs = qq/'Category' = "Voice"/;
($qual = ars_LoadQualifier($ctrl,$schema,$qs)) ||
die "error in ars_LoadQualifier";
%entries = ars_GetListEntry($ctrl, $schema, $qual, 0);
foreach $entry_id (sort keys %entries) {
printf("%s %s\n", $entry_id, $entries{$entry_id});
}
Thanks
Ravi
|