I’m using tamino 188.8.131.52 by js API
I’ve a doctype like this
I specify pageSize = 2 and make the following query:
Paging doesen’t seem to work becouse all “child” nodes are returned instead the first two nodes.
the query is: base/child lower case, of course…
The pagesize controls the number of parent documents that are returned, i.e. documents, and does not control the number of child elements returned.
Software AG (UK) Ltd.
ok, this now is clear but I’ve strange behaviors when I use sortby clause with the previous query. If I query base/child sortby(. asc) paging seems to work (only 2 results are returned) but here is another problem, base/child sortby(. asc) sorts only by doctype instance… an example:
page size = 10
query = base/child sortby(. desc)
I expect to see
I’m a bit confused,
I think that perhaps the confusion is being caused by a subtle difference between “inter-document” and “intra-document” sorting.
The sortby keyword sorts within documents, the sortall keyword sorts across documents. (Please also see this posting: sortby (INOXIE8309, Duplicate in sort key).)
Hopefully this query will solve your problem:
base/child sortall(. desc)