OpenWGA 7.0 - TMLScript reference

CollectionResult
Method :

getPage([offset,] length)

On object CollectionResult
Usage Returns a page of result documents
Description This returns a CollectionPage containing a list of result documents from the collection.
Parameters

offset (Number):

The index of the first result document to return in the query result. 1 is the very first document. Omitting will assume an offset of 1.

size (Number):

Number of documents to return in the page at maximum. The actual returned size may be lower if less documents are available.

Return value CollectionPage
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events