OpenWGA 7.7 - TMLScript reference

CollectionResult
Property :

firstResultContent

On object CollectionResult
Usage Returns the first result document of the collection as WGAPI content object
Description This is an effective way of returning the very first content document that is returned by the query or navigation if only this is important. Note that this variant returns an WGAPI content object instead of a TMLContext.
Return value A WGAPI content object (WGContent)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events