OpenWGA 7.0 - TMLScript reference

List
Method :

retainAll(list)

On object List
Usage Removes all values from the list that are not contained in the parameter list
Description This method does the opposite operation of list.removeAll() in that only values may remain in the list that are also contained in the parameter list.

Like list.contains() this method is case sensitive on strings.
Parameters list (List):
List of values that may remain in the list
Return value true if the operation at least removed one value, false otherwise (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent