Thursday, January 16, 2014

By Using Standard Controller Save The Record

==========VFPage=========================
<apex:page standardController="custerm__c" showHeader="true" sidebar="false">
  <apex:form >
   <apex:pageBlock title="Customer details">
    <apex:pageBlockButtons >
     <apex:commandButton value="save" action="{!Save}"/>
    </apex:pageBlockButtons>
     <apex:pageBlockSection title="Information">
     <apex:inputField value="{!custerm__c.Name}"/><br/>
     <apex:inputField value="{!custerm__c.Cum__c}"/>
    </apex:pageBlockSection>
    <apex:pageBlockSection title="Personal Inf">
     <apex:inputfield value="{!custerm__c.DOB__c}"/><br/>
     <apex:inputfield value="{!custerm__c.State__c}"/><br/>
     <apex:inputfield value="{!custerm__c.vehicle__c}"/><br/>
     <apex:inputfield value="{!custerm__c.Location__c}"/>
    </apex:pageBlockSection>
   </apex:pageBlock>
  </apex:form>
</apex:page>

No comments:

Post a Comment