HELP in AJAX (XML) view entries- intresting

Hi All, Im trying to do get the count of ($VIMPeople) view entries. But failed to do so;

page_request=GetXmlHttpObject()

var url=‘/names.nsf/($VIMPeople)?readviewentries’;

page_request.open(‘GET’, url, false)

page_request.send(null);

var responseData=page_request.responseXML.documentElement.childNodes;

alert(responseData.length)

:::Output is ‘30’. But I have more than 15,000 entries.

Any Ideas?

Thanks in advance.

Subject: Try using &count= in your url

readViewEntries url works the same as openView when it comes to this. The default number of entries to show in a web browser page is 30. You can change the number via the count parameter in the url for readViewEntries. -1 will show all the view’s entries (

if you want to wait a while, test that using the following url for ldd

http://www-10.lotus.com/ldd/nd85forum.nsf/Dateallthreadedweb?readviewentries&count=-1

)

As an alternative, you can also obtain your result with an AJAX call to an agent which uses back-end LS or JAVA properties to get the count of viewEntries from the view. Might be less work (processing) to do it that way. Probably not enough to matter.

OR, if you want it in a really simple manner, use the TopLevelEntries attribute as that will be the number of entries in the view.

Subject: Your XML wil return something like

You want to pull out the toplevelentries value not the number of child nodes, which is based upon the number of child nodes returned, not the number of docs in the view.

page_request.responseXML.documentElement.getAttribute(“toplevelentries”)