Number of Rows property

I have a view that shows 20 rows at a time on the web. It pauses for 10 seconds, and gets the next set of 20. I have the max number of rows hardcoded to 100 rows. So once it hits over 100 rows, it resets the row back to ‘1’ and goes back through the loop. But the number of rows can be well below 100, and it can be well above one hundred. Either causing records to not be displayed, or a generic message saying no documents found. Is there a property anywhere that I could use to make the upper bound of the loop be the actual number of rows of that view?

I have a more drawn on solution that I may try, but I am hoping one of you guys have a quick way for me to get the number.

Subject: Number of Rows property

Add a hidden column with a 1 in it and use @Elements(@DbColumn(…)) to get the count. That’ll get you to a few thousand document before it braks.

Subject: RE: Number of Rows property

It should always be less than 200, so it should work fine. Thanks for your help once again.