+ Start a Discussion
JaggyJaggy 

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">
    {!accounts.length()}

</apex:page>

  length and size methods are not working.

Navatar_DbSupNavatar_DbSup

Hi,

 

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)}"/>

 

 </apex:repeat>

Total Numebr of Account {!CEILING(countaccount)}

 

 

</apex:form>

</apex:page>

 

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