 | |  |
 |

rcrofoot
User
Feb 19, 2008, 3:29 PM
Post #1 of 4
(276 views)
Shortcut
|
Dave- One last question...Other than setting up a ForEach loop and incrementing a counter variable, is there a way to return the record count (number of records returned) in a List Viewer page??? I checked the documentation, but couldn't find anything... Rick Hi Rick, You can use this to see the total number of records: <?php echo $listDetails['totalRecords']; ?> There's a few other variables available as well, you can list them all with this code: <xmp><?php print_r($listDetails); ?></xmp> However, if you want the number of record _displayed_ on the page and not the total count then you'd need to use a counter. Most of the time the number of records displayed on a page would be the same as the per page value (except when you're on the last page). Hope that makes sense. If there's something in particular that you are trying to do and you're not sure how feel free to let me know and I can help you figure it out. (Post in the forum if you can since that helps other people too). Hope that helps!
|
|
|  |
 |

Dave
Staff
/ Moderator

Feb 20, 2008, 9:50 AM
Post #2 of 4
(268 views)
Shortcut
|
Thanks for posting that! Helpful for anyone else who wants to do the same. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

jposwald
User
Nov 25, 2008, 5:42 AM
Post #3 of 4
(43 views)
Shortcut
|
It's not working with new versions of CMS Builder. How can I show total records listed in List Page? Thank you, Juan.
|
|
|  |
 |

Dave
Staff
/ Moderator

Nov 25, 2008, 9:29 AM
Post #4 of 4
(40 views)
Shortcut
|
It should still work. What's it showing for you? Note that the variable might be different in your viewer file, not $listDetails but something else. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
|