I'm trying to fetch the custom objects record details and display on the VF page with below code.
In my case, I have case lookup with a custom object (say, Evaluation__c) and my requirement is - open a case on a VF page and display details of Evaluation__c object record below.
Am I missing something? Pls guide.
Code below:
<apex:page standardController="Evaluation__c"> apex:form apex:pageBlock <apex:pageBlockSection title="Evaluation Details" columns="2">
<apex:pageBlockSectionItem>
<apex:outputLabel value="Case Number" />
<apex:inputField value="{!Evaluation__c.Case__c} " id="Case__c" label="Case Number" required="false" />
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockButtons>
<apex:commandButton value="Submit" action="{!save}" />
</apex:pageBlockButtons>
</apex:pageBlock>
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageBlockTable value="{! Evaluation__c }" var="e">
<apex:column value="{! e.Case__c }" />
<apex:column value="{! e.EvaluationNumber__c }" />
<apex:column value="{! e.Max_Points__c }" />
<apex:column value="{! e.Score__c }" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>