JavaScript method: SCRecordList.getCount()

This method counts the total number of records in the SCRecordList.

Syntax

SCRecordList.getCount();

Arguments

There are no arguments for this method.

Return values

This method returns the total number of records in a record list.

Example

This example does the following:

  • counts the records in the list

This example requires the following sample data:

  • valid location(s)
  • valid record list with at least one record
var x = new SCRecordList( 'location', new QueryCond('location.name', LIKE, 'a'));

print("Total record in the list: " + x.getCount());