AgileApps Support Wiki Pre Release

Difference between revisions of "GetRecordCount"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 1: Line 1:
{{DISPLAYTITLE:getRecordCount}}
{{DISPLAYTITLE:getRecordCount}}
Gets a count of records in {{#ifeq: {{PAGENAME}}|Java API:Composite Objects|a [[Composite Object]]|an Object}} that match specified filtering criteria.
Gets a count of records in {{#ifeq: {{PAGENAME}}|Java API:Composite Objects|a [[Composite Object]]|an Object}} that match specified filtering criteria.
<!-- SHOULD NO LONGER BE TRUE. REMOVE WHEN Suresh VERIFIES IT.
<!-- SHOULD NO LONGER BE TRUE. REMOVE WHEN VERIFIED BY Suresh. (promised 29 Sep 2011)
{{Note|This operation is only available for composite objects, at the moment, so the filtering criteria must include at least one <i>composite-object field</i>, of the form <tt>alias[...].field_name</tt>.) For example: <tt>order_items.products.product_name</tt>. (The presence of the composite-object field induces composite-object processing, instead of normal-object processing.)}}
{{Note|This operation is only available for composite objects, at the moment, so the filtering criteria must include at least one <i>composite-object field</i>, of the form <tt>alias[...].field_name</tt>.) For example: <tt>order_items.products.product_name</tt>. (The presence of the composite-object field induces composite-object processing, instead of normal-object processing.)}}
-->
-->

Revision as of 22:34, 29 September 2011

Gets a count of records in an Object that match specified filtering criteria.

Syntax
<syntaxhighlight lang="java" enclose="div">

int count = Functions.getRecordCount(String objectId, String criteria); </syntaxhighlight>

Parameters
objectId
The object identifier
criteria
A filter expression that specifies records to select.
Returns
An integer containing a count of records that match the selection criteria.