OpenWGA 7.11 - TMLScript reference

Lookup table
Method :

put(key, value)

On object Lookup table
Usage Creates or updates an element of the given key with a new value
Description If the given key is not yet contained in the table this creates a new element. Otherwise the value of the existing element is updated and the previous element value is returned by this method.
Parameters key (Object):
The key of the element to create or update

value (Object):
The value to set on the element
Return value The previously stored value of an updated element, or null if it the key not yet existed
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events