getRecordCount
From AgileApps Support Wiki
Revision as of 22:25, 20 December 2010 by imported>Aeric (Text replace - 'getRecordCount(' to 'Functions.getRecordCount(')
Gets a count of records in an Object that match specified filtering criteria.
Note: This operation is only available for composite objects, at the moment, so the filtering criteria must include at least one composite-object field, of the form alias[...].field_name.) For example: order_items.products.product_name. (The presence of the composite-object field induces composite-object processing, instead of normal-object processing.)
- 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.