-
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
All You Need to Know About Permission Sets
Salesforce Profiles and Permission sets control what users can access, see, and do in your Salesforce org. This permission management is a critical activity in…
Enhance Your Marketing Effort With Salesforce Pardot
Each company can be different from another, whether in terms of industry or values, but one thing that remains common is the need for marketing.…
Salesforce Objects Explained: Standard vs. Custom Objects
STANDARD OBJECT - Standard objects are predefined data structures provided by Salesforce. They are built into the Salesforce platform and cover common business processes and…
Popular Salesforce Videos
Salesforce Development Course for Intermediate Developers
If you want to become a Salesforce developer in 2021 then watch this video, here you'll learn about some of the best Salesforce Development Course…
Salesforce App Builder Certification Questions Explained
CRM tools serve as the base for managing small and large-scale businesses, and Salesforce is among the best CRM tools in the industry. Therefore, Salesforce…
Approval Process In Salesforce | Salesforce Development Tutorial
Approval process in Salesforce. This video will cover the following points - 1. Approval Process Learn how to create an approval process. 2. Manage Approval…