How To: Number Table Rows
Add row numbers to related list tables and control the starting index.
Problem
Solution 1: Basic Row Numbers
<!--{{!
<lineitems>
<listname>opportunitylineitems</listname>
<column header="#">rownum</column>
<column>PricebookEntry.Product2.name</column>
<column prefix="$" format-number="#,###.##">unitprice</column>
</lineitems>
}}-->| # | Product | Price |
|---|---------|--------|
| 1 | Widget | $10.00 |
| 2 | Gadget | $25.00 |Solution 2: Custom Starting Number
Solution 3: Formatted Row Numbers
Tips
PreviousHow To: Work with Right-to-Left LanguagesNextHow To: Create Multi-Page Documents with Page Breaks
Last updated
Was this helpful?

