+ Start a Discussion
sreeesreee 

Unable to retrieve child records

<apex:pageBlock>
<apex:pageBlockTable value="{!position.Job_Application__r}" var="JA" title="job applications">
<apex:column value="{!JA.candidate__r.first_name__c}"/>
<apex:column value="{!JA.Candidate__r.Last_Name__c}"/>
</apex:pageBlockTable>
 
Thanks in Advance
 
Avidev9Avidev9
should work.
Does the nested query have "candidate__r.first_name__c" and "Candidate__r.Last_Name__c" fields ?
sreeesreee

Its is a Standard controller iam using

sreeesreee
<apex:page standardController="Position__c" id="thepage">
<apex:form >
<apex:pageBlock >
<apex:pagemessages></apex:pagemessages>
<apex:pageBlockButtons location="bottom">
<apex:commandButton action="{!save}" value="save">
</apex:commandButton>
<apex:commandButton action="{!cancel}" value="cancel">
</apex:commandButton>
</apex:pageBlockButtons>
<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Position__c.department__c}">
 </apex:inputfield>
<apex:inputField value="{!Position__c.job_description__c}">
</apex:inputfield>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock>
<apex:pageBlockTable value="{!position.Job_Application__r}" var="JA" title="job applications">
<apex:column value="{!JA.candidate__r.first_name__c}"/>
<apex:column value="{!JA.Candidate__r.Last_Name__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
sreeesreee

Unable to see candidate records...

Avidev9Avidev9
I found a lil mistake in the code
 
<apex:pageBlock>
<apex:pageBlockTable value="{!position__c.Job_Application__r}" var="JA" title="job applications">
<apex:column value="{!JA.candidate__r.first_name__c}"/>
<apex:column value="{!JA.Candidate__r.Last_Name__c}"/>
</apex:pageBlockTable>
sreeesreee

sorry that i Changed before but ........unable to see child records

Avidev9Avidev9
well does this gives you value
<apex:column value="{!JA.Id}"/>

?

and try to print the size of the child records by doing

{!position__c.Job_Application__r.size}

What are you getting ?