+ Start a Discussion
ibrahim k 4ibrahim k 4 

how to insert value?

<apex:page controller="theController" action="{!autoRun}">
<apex:form >
<apex:tabPanel id="tabPanel" selectedTab="{!selectedTab}">
  <apex:tab title="Education Details" label="Education Details" id="tab1" disabled="{!istab1disabled}">
  
  <apex:pageBlock title="" mode="edit">
 <apex:pageBlockSection title="Education Details">
 <apex:inputField value="{!employee.Employee_name__c}"></apex:inputField>  
 <apex:outputLabel value="Collegename:">
    

      <apex:selectList size="1" >

            <apex:selectOptions value="{!statusOptions}"/>
        </apex:selectList>
        </apex:outputLabel>
        
        
        
         <apex:outputLabel value="Education_details:">
    

      <apex:selectList size="1" value="{!SelectValue}">

            <apex:selectOptions value="{!statusOptions2}"/>
        </apex:selectList>
        </apex:outputLabel>
        
       
        
        
     </apex:pageBlockSection> 
  
  
  <apex:pageBlockButtons id="contentLoading">
    <apex:commandButton value="Next" action="{!enabletab2}" rerender="tabPanel"/>
    </apex:pageBlockButtons>
     </apex:pageBlock>
  </apex:tab>
  <apex:tab title="Employeement Details" label="Employee Details" id="tab2" disabled="{!istab2disabled}">
      
      <apex:pageBlock >
      <apex:pageBlockSection title="Employee Details">
      <apex:inputField value="{!employee.Department_name__c}"></apex:inputField> 
        
         <apex:outputLabel value="Position:">
    

      <apex:selectList size="1" value="{!SelectValue}">

            <apex:selectOptions value="{!statusOptions3}"/>
        </apex:selectList>
        </apex:outputLabel>
        </apex:pageBlockSection>
   <apex:pageBlockButtons id="contentLoading">

    <apex:commandButton value="Previous" action="{!enabletab1}" rerender="tabPanel" />
     <apex:commandButton value="Save" action="{!addemployeedetails}" />
     </apex:pageBlockButtons>
     
      </apex:pageBlock>
  </apex:tab>
</apex:tabPanel>
</apex:form>
</apex:page>



I am new to salesforce here is my apex code how to create an controller and insert this values
Krishna SambarajuKrishna Sambaraju
Check this example from this blog.
http://blog.jeffdouglas.com/2010/04/27/create-a-new-record-in-force-com-sites/

Hope this helps.

Regards,
Krishna