Difference between revisions of "GetRecordCount"

From AgileApps Support Wiki
imported>Aeric
m (Text replace - 'getRecordCount(' to 'Functions.getRecordCount(')
 
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.
{{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.)}}
 
-->
;Syntax:
;Syntax:
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">

Revision as of 21:55, 29 September 2011

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

Syntax
int count = Functions.getRecordCount(String objectId, String criteria)
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.