function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.