Search code examples
xpagesxpages-extlib

xe:viewJsonService only returns 10 rows


I'm using the viewJsonService to retrieve rows from a Notes view, but only ever get the first 10 rows returned. I haven't specified a value for "searchMaxDocs", but even if I put in a value greater than 10, I still only get the first 10 rows of the view returned.

    <xe:restService id="restServiceEvents" pathInfo="getEvents">
        <xe:this.service>
            <xe:viewJsonService defaultColumns="true"
                viewName="vwEvents" var="eventRow">
            </xe:viewJsonService>
        </xe:this.service>
    </xe:restService>

Is this limit defined somewhere else? How can I retrieve all rows from the view?


Solution

  • Set property count to "100000". It will deliver all documents, at least first 100000.

            <xe:viewJsonService defaultColumns="true"
                viewName="vwEvents" var="eventRow" count="100000">
            </xe:viewJsonService>