You need to sign in to do that
Don't have an account?
Justin Epistola 1
Error: Unknown property ' - Trying to create an export button for related list
Hi all, I am new to Visualforce and is trying to create an export button for a custom object related list; I am getting an error when trying to save;
Error: Unknown property 'OnePlace__Function__cStandardController.OnePlace__Function'
<apex:page standardController ="OnePlace__Function__c" contentType="application/vnd.ms-excel">
<apex:pageBlock title="Invitees">
<apex:pageBlockTable value="{!OnePlace__Function.OnePlace__Invitee__r}" var="item">
<apex:column value="{!item.Name}"/>
<apex:column value="{!item.Initial_Contact__c}"/>
<apex:column value="{!item.Investor_Contact__c"/>
<apex:column value="{!item.NDA_Sent__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Thank you for your helping a noob!
Error: Unknown property 'OnePlace__Function__cStandardController.OnePlace__Function'
<apex:page standardController ="OnePlace__Function__c" contentType="application/vnd.ms-excel">
<apex:pageBlock title="Invitees">
<apex:pageBlockTable value="{!OnePlace__Function.OnePlace__Invitee__r}" var="item">
<apex:column value="{!item.Name}"/>
<apex:column value="{!item.Initial_Contact__c}"/>
<apex:column value="{!item.Investor_Contact__c"/>
<apex:column value="{!item.NDA_Sent__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Thank you for your helping a noob!
All Answers
You are just missing __c
New error pops;
Error: Invalid field OnePlace__Invitee__r for SObject OnePlace__Function__c
Thank you!
Setup > Search objects -> Locate Invitee object ->
Click on the field that is the lookup to the Function > Look at the Child Relationship name
I tried changing it;
<apex:page standardController="OnePlace__Function__c" contentType="application/vnd.ms-excel">
<apex:pageBlock title="Invitees">
<apex:pageBlockTable value="{!OnePlace__Function.OnePlace__Attendees__r}" var="item">
<apex:column value="{!item.Name}"/>
<apex:column value="{!item.Initial_Contact__c}"/>
<apex:column value="{!item.Investor_Contact__c"/>
<apex:column value="{!item.NDA_Sent__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Error: Unknown property 'OnePlace__Function__cStandardController.OnePlace__Function'
Thank you!