
I used the code from the tutorial: http://wiki.developerforce.com/index.php/Tabbed_Accounts_in_30_seconds
I am getting the error: Error: Unknown property 'Student__cStandardController.Student__r'
Here is my code:
<apex:page tabStyle="VisualF__tab" standardController="Student__c" showHeader="true">
<apex:pageBlock >
Welcome {!$User.FirstName}
You are on {!Student__c.name}'s student page.
</apex:pageBlock>
<style>
.activeTab {background-color: #.236FBD; color:white; background-image:none}
.inactiveTab { background-color: lightgrey; color:black; background-image:none}
</style>
<apex:tabPanel switchType="client" selectedTab=" tabDetails" id="StudentTabPanel" tabClass='activeTab' inactiveTabClass='inactiveTab'>
<apex:tab label="Student Details" name="StudentDetails" id="tabDetails">
<apex:detail relatedList="false" title="true"/>
</apex:tab>
<apex:tab label="Grade Book" name="GradeBook" id="tabGrades">
<apex:relatedList subject="{!???}" list="Gradebook" />
</apex:tab>
<apex:tab label="Attendance" name="Attendance" id="tabAttendance">
<apex:relatedList subject="{!Student__r}" list="Attendance" />
</apex:tab>
<apex:tab label="Behavior Log" name="BehaviorLog" id="tabBehavior">
<apex:relatedList subject="{!Student__r}" list="OpenActivities" />
</apex:tab>
<apex:tab label="Student Note" name="StudentNote" id="tabNote">
<apex:relatedList subject="{!Student_r}" list="StudentNote" />
</apex:tab>
</apex:tabPanel>
</apex:page>
Any suggestions?
4 respostas