Hi, I'm trying to write a page to return some LiveTable results. I'm
finding that $query.count() is returning -1 instead of the actual number
of results. Can anyone tell me why?
{{velocity}}
#set($query = $services.query.xwql("from
doc.object(Invitation.InvitationMailClass) as inv"))
#set($invitations = $query.execute())
#foreach($invite in $invitations)
* $invite
#end
Number of results is: $query.count()
{{/velocity}}
...gives results:
Invitation.InvitationMessages
Invitation.InvitationMessages
Number of results is: -1
I was expecting the number of results to be "2". I'm trying to make
sense of the documentation here:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module
...but it doesn't seem to have much description of the API, and I can't
see anything on
maven.xwiki.org either.
Thanks,
Matthew Exon