OpenWGA 7.0 - TMLScript reference

WGA
Method :

toList(value)

On object WGA
Usage Converts any value into list form
Description

This method does the same list conversion known from itemList() or metaList() on a custom value. It is ensured that the return value is a non-null List with differing contents.

The behaviour regarding the given input values is:

  • Given a list it returns that list unmodified
  • Given other collections and arrays it returns a list containing the collection values
  • Given null it returns an empty list
  • All other values return a list with the value as single element
Parameters

value (Object):

Any value to be converted to a list

Return value List
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events