I used to use this very simple calculation to display a record count in all my solutions:
“Record ” & Get(RecordNumber) & ” of ” & Get(FoundCount) & ” ( ” & Â Get(TotalRecordCount) & ” total )”
and though it still works in my main layouts in FileMaker 11 it seems to have stopped working in portals, so I had to come up with a new solution and thanks to a post by Daniele Raybaudi over at FileMaker Forums I found a much easier solution:
which I then compliment on the layout by using the layout shortcut for Get Record Number Symbol or Get Portal Number Symbol: @@. So it is rendered on the page as:
@@Â of <<JOIN_Addresses_Companies::c_Found_Count_Portal>>
Which is in itself a much more elegant solution. Oh and remember to set the calculated field to un-stored.