OpenWGA 7.9 - TMLScript reference

Method :


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.

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