OpenWGA 7.7 - TMLScript reference

CollectionResult
Method :

getSingleValue(itemName)

On object CollectionResult
Usage Returns the value of an item from the first result document of this collection
Description This is an effective way of returning only a single value of the very first content document that is returned by the query or navigation if only this is important. This method returns null if either there is no document in the result or if it does not contain the item.
Parameters

itemName (String):

Name of the item to retrieve

Return value The value of the item or null if either item or document do not exist
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events