Message
Brought to you by:
jeffmurphy
|
From: Bruce F. <br...@tr...> - 1996-05-11 18:08:56
|
I've been trying to get the sort option to work in the ars_GetListEntry
function, but have been unsuccessful. I've tried the example as in the 'usage'
html page for ARSperl and ARSweb, but that doesn't seem to work for me. As
I am *not* a very experienced perl programmer, I'm figuring it is something
that I'm doing incorrectly. Basically, the example I'm trying to get to work
looks like this:
$sort_string->{numItems}=1;
$sort_string->{sortList}[0]{fieldId}=2;
$sort_string->{sortList}[0]{sortOrder}=1;
%entries = ars_GetListEntry($ctrl, $schema, $qual, $max_records, %sort_string);
This example should return the field-id and quick list description from my
schema sorted by field-id 2, but it doesn't. I've also tried reversing
'$max_records' and '%sort_string' since I wasn't sure about the order,
however that didn't work either. Also, are multiple sort fields allowed?
Anyone who can give me some quick pointers on how to get this to work?
Thanks
--
Bruce Friedman
TriTeal Corporation
Email: br...@tr...
|