OpenWGA 7.2 - TMLScript reference
TMLContext "this"Method :
itemList(itemname)
On object | TMLContext "this" |
Usage |
Returns the value of an item or WebTML variable as list |
Description |
This is a variant of this.item() which instead of single values will always return lists. If it is used to retrieve a single value field it will provide it as a list with a single element. Otherwise the behaviour of this method matches that of this.item(). |
Parameters |
itemname (String): Name of the field to retrieve |
Return value |
A list containing the values of the item/varlable that was retrieved. An empty list (size=0) if the field was of value null or did not exist. |
Allowed in script types |
|
Examples |
|