If you specify 0 and 0, it should return all 333 entries. At that point, assuming you are using a hash for your return, it would be a simple matter to obtain the number of records using the keys() function in perl. For instance, if I were wanting to find the number of entries in your call below, I'd set it up this way:
%entries = ars_GetListEntry($c, "User", $q, 0, 0); $number_entries = scalar keys %entries; On Mon, Jul 16, 2012 at 8:08 AM, Misi Mladoniczky <[email protected]> wrote: > Hi, > > To know all requests were returned in a result list from > ARGetListEntry/ARGetListEntryWithFields the numMatches variable needs to > be returned. This is available in the C API but is not implemented in the > corresponding ARSperl calls. > > They can easily be implemented I guess, but I need advice on how to best > proceed. > > How should the parameter be specified and returned when calling > ars_GetListEntry or ars_GetListEntryWithFields? > > We would have multiple return values in this case... > > ars_GetListEntry(ctrl, schema, qualifier, > maxRetrieve=0,firstRetrieve=0,...) > > For example if a search results in 333 entries: > %entries = ars_GetListEntry($c, "User", $q, 100, 101); > We would get 100 entries returned, but there is no way to tell that there > are a total of 333 entries to retrieve. > > Best Regards - Misi, RRR AB, http://rrr.se > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > -- > Arsperl-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/arsperl-users >
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-- Arsperl-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/arsperl-users
