OpenWGA 7.11 - TMLScript reference
Object:
QueryResult
Description |
Represents a CollectionResult carrying all resulting data of an executed query. Besides the actual set which carries all the resulting documents this object can also be used to find out about other information of the query result, like the actually executed full query, whether the query was served from WGAPI query cache etc.
|
||||||||||||||||||||||||||||||||||||||||
Retrieval | Database.query() | ||||||||||||||||||||||||||||||||||||||||
Allowed in script types |
|
||||||||||||||||||||||||||||||||||||||||
Inherits from object | CollectionResult | ||||||||||||||||||||||||||||||||||||||||
Properties and methods |
|
||||||||||||||||||||||||||||||||||||||||
Examples |
Iterating over the results of a query result - variable "qs" - using an Iterator: var qr = WGA.app().query("hql", "content.structentry.contenttype.name='standard'"); for (cx in Iterator(qr)) { list.add(cx.TITLE); } More examples on object CollectionResult. |