function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raquel RiemerRaquel Riemer 

Error: Unknown property 'VisualforceArrayList.Contact__c'

I am ultimately trying to create a visual force page on a parent object that shows a field from a child object as well as using a lookup field to the contact on the child object to get a contact related list.. 

Parent object is Travel
Child Object is tour interest
lookup field to contact on child object is Contact
Related list on contact is recognition.. 

I have attached an image of where I am so far.. I eventually want it all in table format but I just keep getting stuck on the last piece.. 

I have started to create a custom controller though I have never done that beforeUser-added image



 
Raj VakatiRaj Vakati
You are making small mistake .. its not contact__c ... and it should be contact__r
Raquel RiemerRaquel Riemer
I tried that first it did not work Raquel Riemer, Database Analyst t 516-678-6805 x170 f 516-678-0089 rriemer@jnf.org jnf.org
Maharajan CMaharajan C
Hi Raquel,

Try like below: 

Add the below Lines instead of line 13,14. 

<apex:pageBlock title="Recognitions">
<apex:repeat value="{!Travel__c.Tour_Interests__r}" var="TIs">
    <apex:repeat value="{!TIs.Contact__r}" var="TIcon">
        <apex:pageBlockTable value="{!TIcon.Israel_Recognitions__r}" var="CT">
        
        </apex:pageBlockTable>
    </apex:repeat>
</apex:repeat>
</apex:pageBlock>

Thanks,
Maharajan.C