-
Creating a pdf page and want to display row number in first column
Creating a pdf page and want to display row number in first column. I found solution to use apex:variable and increment it.
<apex:variable value="{!0}" var="index"/>
<apex:pageBlockTable value="{!salesOrderItems}" var="salesOrderItem" border="1px">
<apex:variable var="index" value="{!index + 1}"/>
<apex:column>
<apex:facet name="header">
<apex:outputLabel value="Number" />
</apex:facet>
<apex:outputLabel value="{!index}" />
</apex:column>
</apex:pageBlockTable>But in every row '0' is displaying
Log In to reply.
Popular Salesforce Blogs
Why Everyone Should Integrate SharePoint with Salesforce
SharePoint is one of the most popular document management platforms today. It is used by virtually all major enterprises since it ties in neatly with…
Top Salesforce Spring '22 Features (Part- 1)
Salesforce's Spring '22 release notes are out and we cannot wait to show you what Salesforce has in store for all of us. We have…
Why Are Boutique Salesforce Partners Better for You?
“Bigger the better” or “The larger the better experience”- these quotes may hold true in a wide gamut of issues. But in the universe of Salesforce…
Popular Salesforce Videos
How to Become a Salesforce Developer? No Programming Experience Needed
Salesforce Developer has once again been named one of the world's best jobs. In a list of 25 job roles, Salesforce was the only company…
WWE Connector for Salesforce
In this quick video we will show the Workspace Web Edition Connector for Salesforce. The WWE Connector leverage a powerful browser extension to guarantee a…
Summer Internship | Career with Salesforce
This Summer, dive into the ocean of Salesforce with S2 Labs Apply for the much-awaited S2 Labs Summer Internship Program and start accelerating your career…