OpenWGA 7.0 - TMLScript reference

List
Method :

subList(from ,to)

On object List
Usage Extracts a partial list
Description Returns a list that contains a part of the original list in the same order. Specify the index positions to start and end the part as parameters. Note that the index position of the second parameter is exclusive, i.e. the value is the first that is not contained in the result list any more.

The new list is independent of the original list in that operations on it will not influence the original list.
Parameters from (Number):
Index position where the partial list starts, inclusive. The value at the position is the first in the result list.

to (Number):

Index position where the partial list ends, exclusive. The value at the position is the first that is not in the result list.

Return value A List containing the specified part
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent