Re: Limit Result Set

Adam Tauno Williams <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Organization Morrison Industries
Message-ID <[email protected]>
> > Is there a default or some other mechanism to limit the maximum number
> > of results returned by an XML-RPC call?  (I think I recall seeing some
> > such thing, but can't find it now).
> Hm, and a fetch specification _might_ support the 'fetchLimit' key. Not 
> sure whether the contact datasources honor that.

As a matter of fact it works perfectly, in both people and enterprises.

function getRPCSpec() {
  $this->traceMessage('@OGOFetchSpec:getRPCSpec');
  $_spec = new XML_RPC_Value(
                array("qualifier" => new
XML_RPC_Value($this->getSearchCriteria(),"string"),
                      "fetchLimit" => new
XML_RPC_Value($this->getLimit(),"string"),
                      "hints" => new XML_RPC_Value(array("attributes" =>
new XML_RPC_Value($this->getHints(),"array")), "struct")
                      ),
                     "struct");
      return $_spec;
}
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBCUqEJLRePpNle04MRAqm/AJ9WGEVkKwz7zCaI2TTiiWwVjXpYCgCfT28C
pXBUDoWnBNbA62KIJQiBOsM=
=vcl7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.