• ragati shirisha 4
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
<apex:page showheader="false" sidebar="false" standardController="Account" >
    <apex:pageBlock title="account information">
        <apex:pageBlockSection title="general account detail">
            <apex:outputField  value="{!Account.name}"/>
            <apex:outputField  value="{!Account.fax}"/>
            <apex:outputField  value="{!Account.phone}"/>
        </apex:pageBlockSection>
        <apex:pageBlockSection title="related accounts">
            <apex:relatedList list="contacts"/>
            <apex:relatedList list="opportunities"/>
        </apex:pageBlockSection>
       </apex:pageBlock>
    <apex:pageBlock title="custom table">
        <apex:pageBlockTable value="{!Account.contacts}" var="AC">
          <apex:column headervalue="contact first name" value="{!AC.first name}"/>
            <apex:column headervalue="contact last name" value="{!AC.last name}"/>
            <apex:column  headervalue="contact email" value="{!AC.contact email}"/>
        </apex:pageBlockTable>
    </apex:pageBlock>
  </apex:page>