OpenWGA 7.11 - TMLScript reference

WGA
Method :

createMap([object])

On object WGA
Usage

Creates a new Lookup table

Alias for WGA.createLookupTable()

Parameters

object - optional

a javascript Object or a java.util.Map object.

Return value The created Lookup table
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples

WGA.createMap({
    a: 1,
    b: 2
})

Create a java map with the two elements "a" and "b".