You need to sign in to do that
Don't have an account?
Unable to retrieve data
<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 action="!cancel" value="Cancel"/>
</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__c.R00N30000002btlAEAQ__r}" var="JA" title="Job Applications">
<apex:column value="{!JA.Candidate__c}"/>
<apex:column value="{!JA.Candidate_Qualified__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
I'm not receiving any error while saving but unable to get the desired output ....any thought on this
Can you share ur controller code?
i have posted it on the top.
Thanks
PLz share ur controller code... so that i can fix it quickly...
<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__c.Job_Application__r}" var="JA">
<apex:column value="{!JA.Candidate__r.First_Name__c}">
</apex:column>
<apex:column value="{!JA.Candidate__r.Last_Name__c}">
</apex:column>
<apex:column value="{!JA.Candidate_Qualified__c}">
</apex:column>
</apex:pageblockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
I have replaced Job_Application__r with actual value "R00N30000002btlAEAQ__r"
& Candidate__r with "R00N30000002btlBEAQ". As API names for relations shows errors.
Is this ur desired output?
Yep with - First Name Last Name & Candidate Qualified? My output shows only
Try below code:
<apex:pageblockTable
value="{!Position__c.Job_Application__c}" var="JA">
<apex:column value="{!JA.Candidate__r.First_Name__c}">
</apex:column>
<apex:column value="{!JA.Candidate__r.Last_Name__c}">
</apex:column>
<apex:column value="{!JA.Candidate_Qualified__c}">
</apex:column>
</apex:pageblockTable>
what error r u getting?
Error: Invalid field Job_Application__r for SObject Position__c