You need to sign in to do that
Don't have an account?

What's wrong in this Apex Visual Force page & how to write class for this?
<apex:page controller="Person">
<apex:sectionHeader id="Own_VisualForce" title="Student Twin" subtitle="New Twin Student"
description="This is the VisualForce page of Student object"
help="/apex/MyVisualForcePage"
printUrl="https://c.ap2.visual.force.com/apex/Own?core.apexpages.request.devconsole=1"/>
<apex:form >
<apex:pageBlock id="OwnPageblock" title="Student Edit" tabStyle="Opportunity" dir="LTR" helpTitle="Any Help?"
helpUrl="https://ap2.salesforce.com/_ui/core/userprofile/UserProfilePage"
mode="inline edit" rendered="true" lang="en-IN">
<apex:pageBlockButtons id="Own_pbb" title="PageBlockButtons" dir="LTR" lang="en-US" rendered="true" >
<apex:commandButton value="Save"/>
<apex:commandButton value="Save & New"/>
<apex:commandButton value="cancel" />
<apex:pageBlockSection collapsible="false" columns="4" rendered="true">
<apex:inputField value="{!Person.Person_Name}"/>
<apex:inputField value="{!Person.Course}"/>
<apex:inputField value="{!Student.Country}"/>
</apex:pageBlockSection>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>

What's wrong in the above program (ERROR in Line 0 --> Unknown property 'Person.Person') & i'm trying to get the fields of a custom obj named "Person" as shown in the above picture. How to write a class with set & get.
<apex:sectionHeader id="Own_VisualForce" title="Student Twin" subtitle="New Twin Student"
description="This is the VisualForce page of Student object"
help="/apex/MyVisualForcePage"
printUrl="https://c.ap2.visual.force.com/apex/Own?core.apexpages.request.devconsole=1"/>
<apex:form >
<apex:pageBlock id="OwnPageblock" title="Student Edit" tabStyle="Opportunity" dir="LTR" helpTitle="Any Help?"
helpUrl="https://ap2.salesforce.com/_ui/core/userprofile/UserProfilePage"
mode="inline edit" rendered="true" lang="en-IN">
<apex:pageBlockButtons id="Own_pbb" title="PageBlockButtons" dir="LTR" lang="en-US" rendered="true" >
<apex:commandButton value="Save"/>
<apex:commandButton value="Save & New"/>
<apex:commandButton value="cancel" />
<apex:pageBlockSection collapsible="false" columns="4" rendered="true">
<apex:inputField value="{!Person.Person_Name}"/>
<apex:inputField value="{!Person.Course}"/>
<apex:inputField value="{!Student.Country}"/>
</apex:pageBlockSection>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
What's wrong in the above program (ERROR in Line 0 --> Unknown property 'Person.Person') & i'm trying to get the fields of a custom obj named "Person" as shown in the above picture. How to write a class with set & get.
<apex:page standardController="Person__c">
We can write a controller for this but why are you not using Standard controller ?
but if you want to learn you can refer following document
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_properties.htm
Thanks,
Himanshu