OpenWGA 7.7 - TMLScript reference

WGA
Method :

deleteDoublets(list)

On object WGA
Usage Removes multiple equal entries from a list
Description This method is most usual when the list only contains trivial objects like strings, numbers and dates that can be equality tested. On all other object types it uses the Java equality test, which involves the individual equals() method of the types concerned.

Because of legacy reasons this method modifies the parameter list directly, although it also returns the same list as return value.

This function is case sensitive on strings,  so "Entry" is not regarded equal to "entry".

For backward compatibility there still is a global function "deleteDoublets()" available whose use is discouraged since OpenWGA 5.3.

Parameters

list (List):

List to remove duplicates from

Return value The parameter list with duplicates removed (Lists)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent