OpenWGA 7.10 - TMLScript reference

Lookup table
Method :

containsValue(value)

On object Lookup table
Usage Tests if an element with the given value exists
Description This method tests all element values in the table for equality on the parameter value. You can use this method with any value type but real equality can only be tested with comparable objects like numbers, strings or dates. String values are case sensitive. A parameter value "Key" will not return true when only element value "KEY" is available.

On other, non-comparable object types this method will return true when the object instance given as parameter itself is contained in the table as value.

From a Java perspective this method uses the Java equality test using the equals() method of the object class


Parameters value (Object):
The value to test
Return value true, if the value is contained in the table, false otherwise (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent