Skip to main content
added 66 characters in body
Source Link
sfdcfox
  • 501.6k
  • 21
  • 473
  • 828

Use bellowYou can use an apex:variable, as shown in the code below, to show a row number.

<apex:variable var="index" value="{!1}"/>
<apex:repeat value="{!yourList}" var="ob">
    <apex:outputLabel value="{!index}"/>
    <apex:variable var="index" value="{!index+1}"/>
</apex:repeat>

Use bellow code

<apex:variable var="index" value="{!1}"/>
<apex:repeat value="{!yourList}" var="ob">
    <apex:outputLabel value="{!index}"/>
    <apex:variable var="index" value="{!index+1}"/>
</apex:repeat>

You can use an apex:variable, as shown in the code below, to show a row number.

<apex:variable var="index" value="{!1}"/>
<apex:repeat value="{!yourList}" var="ob">
    <apex:outputLabel value="{!index}"/>
    <apex:variable var="index" value="{!index+1}"/>
</apex:repeat>
Source Link

Use bellow code

<apex:variable var="index" value="{!1}"/>
<apex:repeat value="{!yourList}" var="ob">
    <apex:outputLabel value="{!index}"/>
    <apex:variable var="index" value="{!index+1}"/>
</apex:repeat>