3

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?

Martin Perrie
  • 398
  • 5
  • 16

1 Answers1

3

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>
Knut Herrmann
  • 30,880
  • 4
  • 31
  • 67
  • I'm getting 10 documents returned regardless of the value of searchMaxDocs. I've tried "0", "1", "5", "100", "100000" - and get 10 returned every time! Could something else be overriding this? – Martin Perrie Mar 08 '18 at 11:26
  • Thank you - I only saw your edit after I had posted my previous comment :) – Martin Perrie Mar 08 '18 at 11:34