+ Start a Discussion
Sarvesh PrajapatiSarvesh Prajapati 

VF Query

Hi,

I have created a VF page as below:

<apex:page standardController="Job_Application__c">
     <apex:pageBlock title="{!Job_Application__c.Name__c}">
         <apex:outputPanel id="CandidateDetails">
             <apex:detail subject="{!Currentpage.parameters.cid}" relatedList="false" title="false"/>
         </apex:outputPanel>
     </apex:pageBlock>
     <apex:pageBlock title="Candidate">
         <apex:form>
             <apex:datalist value="{!Job_Application__c.Candidate__c}" var="Cand">
             {!Cand.First_Name__c}
             </apex:datalist>
         </apex:form>
     </apex:pageBlock>
</apex:page>


Error: Unknown property 'Job_Application__cStandardController.Currentpage'
Error: Unknown property 'String.First_Name__c'

Please let me know what is wrong here.

Regards
Sarvesh
Best Answer chosen by Sarvesh Prajapati
Sarvesh PrajapatiSarvesh Prajapati
It worked. Thanks.

All Answers

Naval Sharma4Naval Sharma4
Hi Sarvesh,

There are some syntax errors with your code.
Try the updated code.
 
<apex:page standardController="Job_Application__c">
     <apex:pageBlock title="{!Job_Application__c.Name__c}">
         <apex:outputPanel id="CandidateDetails">
             <apex:detail subject="{!$Currentpage.parameters.cid}" relatedList="false" title="false"/>
         </apex:outputPanel>
     </apex:pageBlock>
     <apex:pageBlock title="Candidate">
         <apex:form>
             <apex:datalist value="{!Job_Application__c.Candidates__r}" var="Cand">
             {!Cand.First_Name__c}
             </apex:datalist>
         </apex:form>
     </apex:pageBlock>
</apex:page>

 
Sarvesh PrajapatiSarvesh Prajapati
It worked. Thanks.
This was selected as the best answer
Naval Sharma4Naval Sharma4
Hi Sarvesh,

Please mark this solution as resolved so others can also get benifit.

Thanks,
Naval
Sarvesh PrajapatiSarvesh Prajapati
Hi Naval,

Can you please let me know how to mark this as resolved.

Sarvesh.