Saturday, April 6, 2013

detail page of abject fields using outputfield

Visualforce Page:
<apex:page standardController="Account" >
 <apex:sectionHeader title="Account"  help="http://www.google.com"/>
  <apex:form >
   <apex:pageBlock title="Account View">
   <apex:PageblockSection title=" Account Information" columns="2" collapsible="true">
   <apex:outputfield value="{!account.Name}"/>
   <apex:outputfield value="{!account.CurrencyIsoCode}"/>
   <apex:outputField value="{!account.phone}"/>
   <apex:outputField value="{!account.rating}"/>
   <apex:outputField value="{!account.result__c}"/>

    </apex:PageblockSection>
    <apex:PageblockSection title="Additional Information" columns="2" collapsible="false">
       <apex:outputfield value="{!account.SLA__c}"/>
       <apex:outputfield value="{!account.SLAExpirationDate__c}"/>
       <apex:outputfield value="{!account.SLASerialNumber__c}"/>
     </apex:PageblockSection>
      <apex:PageblockButtons location="Bottom">
       <apex:commandButton value="Save" action="{!save}"/>
     
       <apex:commandButton value="Cancel" action="{!cancel}"/>
     </apex:PageblockButtons>
   </apex:pageBlock>
  </apex:form>
   
</apex:page>

No comments:

Post a Comment