• WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
        • Field Service Lightning
        • Field Service for SMEs
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • Data Science
      • BI Solutions
      • AI/ML solutions
      • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
  • REACH US
    • Contact Us
    • Careers
  • BLOG
    • WHO WE ARE
    • WHAT WE DO
      • Salesforce
        • Implementations
          • Sales Cloud
          • Service Cloud
          • CPQ
          • Field Service Lightning
          • Field Service for SMEs
        • Developments
          • Salesforce Customization
          • Custom Application Development
          • AppExchange Product Development
        • Migrations
          • Classic to Lightning Migration
          • Other Systems to Salesforce Migration
        • Integrations
      • Data Science
        • BI Solutions
        • AI/ML solutions
        • Agentic AI
    • HOW WE DO
      • Delivery Model
      • Our Works
    • REACH US
      • Contact Us
      • Careers
    • BLOG
  • [email protected]
  • (+91) 44-49521562
Merfantz - Salesforce Solutions for SMEs
Merfantz - Salesforce Solutions for SMEs
  • WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
        • Field Service Lightning
        • Field Service for SMEs
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • Data Science
      • BI Solutions
      • AI/ML solutions
      • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
  • REACH US
    • Contact Us
    • Careers
  • BLOG

Create Tables Display on Detail Page by Using VisualForce

  • July 27, 2017
  • Merfantz Editor
  • Salesforce Developments Tutorial
  • 0
Below code would help to create a table to display detailpage by using the visualforce page.
Step1:-
Inline Visualforce Page:-
<apex:page standardController="Lead" extensions="MonthTableExample">
   <apex:form>
       <apex:pageBlock title="Inline Visualforce Page Example">
             <table border="1px">
                   <tr>
                       <th></th>
                       <th>JAN</th>
                       <th>FEB</th>
                       <th>APR</th>
                       <th>MAY</th>
                   </tr>                    
                <apex:repeat value="{!leadList}" var="a" >
                  <tr>
                       <th>Usage</th>                       
                       <td>{! a.Jan_u__c}</td>                       
                       <td>{! a.feb_u__c}</td>
                  </tr>
                  <tr>
                      <th>Cost</th>
                      <td>{! a.Jan_c__c}</td>                       
                      <td>{! a.feb_c__c}</td>
                 </tr>
                </apex:repeat>
            </table>
       </apex:pageBlock>
   </apex:form>
</apex:page>

Extension:-
public class MonthTableExample {
    public String LId {get;set;}
    public List<Lead> leadList {get;set;}
    public MonthTableExample(ApexPages.StandardController controller){
       LId = ' ';
       LId=System.currentPageReference().getParameters().get('id');
       System.debug('...................LID=='+LId);
       Id i= Id.valueOf(LId);
       leadList = [Select Jan_c__c,Jan_u__c,feb_c__c,feb_u__c from Lead where Id=:i];
       system.debug('.............................leadlist=='+leadList);
   }
   public MonthTableExample(){
   }
}

Step 2:- Go to Lead Page and open any Lead Account and click Edit Layout.
Step 3:-  Create a new Section and Save any Name .
Step 4:-   Click on Visualforce Page then show your page with name then drag on this and drop of newly created section.This Screenshot will help you.
We have developed the feature for Creating tables display on detail page using VisualForce in Fieldax&Field Service Management. so kindly let us know if you have any query.

We are the ISV Partners and Please reach us for custom development => www.merfantz.com

---------------------- We Are Happy To Helping You ---------------------------

Author Bio

Merfantz Editor
+ Recent Posts
  • August 4, 2023
    How to Setup CRM Analytics for Financial Services Cloud
  • August 2, 2023
    How to Get Started with Salesforce Hyperforce - Merfantz
  • July 28, 2023
    Health Cloud Mastery: Salesforce Trailhead for Effective Healthcare CRM
  • July 26, 2023
    How to integrate Data cloud and Marketing cloud In Salesforce
Tags: Field Service ManagementFieldax
  • Previous Validation Rules on the VF page for Phone and Name in Salesforce
  • Next Assign Header And Footer using Visualforce Page with CSS

Leave a Reply

You must be logged in to post a comment.

Merfantz Technologies is a leading Salesforce consulting firm dedicated to helping small and medium enterprises transform their operations and achieve their goals through the use of the Salesforce platform. Contact us today to learn more about our services and how we can help your business thrive.

Discover More

Terms and Conditions
Privacy Policy
Cancellation & Refund Policy

Contact Info

  • No 96, 2nd Floor, Greeta Tech Park, VSI Industrial Estate, Perungudi, Chennai 600 096, Tamil Nadu, INDIA
  • (+91) 44-49521562
  • [email protected]
  • 9:30 IST - 18:30 IST

Latest Posts

Comprehensive Overview of Salesforce Agent-Force Platform
Comprehensive Overview of Salesforce Agent-Force Platform June 12, 2025
Salesforce GraphQL Revolutionizing Data Queries in CRM
Salesforce GraphQL: Revolutionizing Data Queries in CRM June 6, 2025
Unlocking the Power of Dynamic Forms in Salesforce Lightning App Builder
Unlocking the Power of Dynamic Forms in Salesforce Lightning App Builder May 29, 2025

Copyright @2023 Merfantz Technologies, All rights reserved