-
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
Advancing the Salesforce's Email-to-Case with Email to Case Advance
Intensifying Subscription Economy & Retaining Customers I am not going to go back to the books to explain what ‘Subscription Economy’ is. We all are…
Salesforce Experience Cloud For Partners
Unlocking Salesforce Experience Cloud's Potential for Partners In today’s digital world, companies are increasingly turning to technology to help them manage and optimize their partner…
Popular Salesforce Videos
Basics of Salesforce Flow in 15 minutes
In this video, Jitendra Zaa gives a detailed overview of the basics of Salesforce Flow in just 15 minutes. He covers everything from how to…
Develop Lightning Web Components Faster with Local Development Server | Developer Quick Takes
The Local Development Server is a Salesforce CLI plug-in that configures and runs a Lightning Web Components-enabled server on your computer. You can develop Lightning…
Salesforce Developers Innovate From Anywhere
Hear from Developer Trailblazers to learn how they’ve been innovating from anywhere and making magic happen for their users with Salesforce. With Salesforce, Developers can…