NetTalk Central

Author Topic: Number of records in browse  (Read 3566 times)

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Number of records in browse
« on: October 05, 2009, 09:51:46 AM »
Hello,
Does anyone know how to get the number of records inside the browse? Not the one on the page, but the total of the filtered browse. So I can let the user know how many records there are.

Greetz.
Sjoerd
Greetz,
Sjoerd

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Number of records in browse
« Reply #1 on: October 05, 2009, 12:52:55 PM »
Hi,
You can take a look to my post:

http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=656.0

It can give you some ideas.

Cheers
Alberto
-----------
Regards
Alberto

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Number of records in browse
« Reply #2 on: October 06, 2009, 12:01:45 AM »
Thanks, Alberto

This did the trick. Did you also manage to get the total pages?
So you can show the user: Page: 1 of 10 or something.
Greetz,
Sjoerd

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Number of records in browse
« Reply #3 on: October 06, 2009, 01:52:05 AM »
Well... TotalPages is TotalRecords/RecordsPerPage, just add the variable and the code to my example and you are done.

Alberto
-----------
Regards
Alberto