OpenWGA 7.2 - TMLScript reference

QueryResult
Method :

getSingleValue(itemName)

On object QueryResult
Usage Returns the value of an item from the first result document of this query
Description This is an effective way of returning only a single value of the very first content document that is returned by the query 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