OpenWGA 7.0 - TMLScript reference

CollectionResult
Method :

skip(size)

On object CollectionResult
Usage Skips the first documents in the current collection result
Description

This creates a new CollectionResult which is based on the current CollectionResult but where a number of the first documents from the result is skipped.

Skipping results is a resource effective way to navigate the collection result to the position where the actually needed documents start. Unlike just iterating to the needed position it does not load the skipped documents. However it does not check if the skipped documents were actually readable/visible so would have been part of the actually returned documents.

Parameters

size (Number):

The number of documents to skip

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