-
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
Custom Notification Using Apex | Salesforce Developer Guide
Custom Notification Custom notification may be a made-to-order notification within Salesforce org. We are able to use this feature to send notifications once any vital…
Why Salesforce Sales Cloud Is Essential for Businesses in 2025?
In an era where companies continuously seek ways to be innovative and stay ahead of the race, Salesforce Sales Cloud emerges as an imperative tool.…
Salesforce Nonprofit Success Pack Implementation Guide
If you’re reading this, you’ve likely decided to begin using Salesforce for your nonprofit organization. Well, have no fear, because you’ve made a great decision!…
Popular Salesforce Videos
What is Campaign Member in Salesforce? | How to add Leads and Contacts in Campaign object's record?
This video explains Campaign Members in-depth. Let's discuss the following things in this video: 1. What is the significance of Campaign members in Salesforce? 2.…
Algoworks Becomes SFDO Partner | Salesforce Partner
The Salesforce Partner Program gives the opportunity to its partners to build and grow successful businesses while delivering customer success. With this program, Independent Software…
Login Flow In Salesforce
You can use a login flow to customize the login experience and integrate business processes with Salesforce authentication. Common use cases include collecting and updating…