+ Start a Discussion

printing size

hi guys,


I am using standard list controller and want to print current page set record count. How can we achieve this without using extensions?  


<apex:page standardController="Account" recordSetVar="accounts">


  length and size methods are not working.




Try the below code snippet as reference:


<apex:page standardController="Account" recordSetVar="accounts">

<apex:form >

<apex:variable value="{!0}" var="countaccount"/>


<apex:repeat value="{!accounts}" var="acc">

 <apex:variable var="countaccount" value="{!(countaccount+ 1)}"/>



Total Numebr of Account {!CEILING(countaccount)}






Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.