You need to sign in to do that
Don't have an account?
Error: Unknown property
I am trying to create a visualforce that will render as a pdf. I am recieving the following error:
Error: Unknown property 'Funded_Program_Request__c.Funded_Request_Status__c' referenced in Approved_Funded_Program_Request
I am not sure why I am getting this error. Code is listed below.
<apex:page > standardController="Funded_Program_Request__c" standardStylesheets = "false" showHeader="false" renderAS="pdf" extension="ApprovedFundedProgramRequestPDF"> <body> <apex:stylesheet value="{!URLFOR($Resource.styles, 'styles.css')}"/> <center><apex:image value="{!URLFOR($Resource.QLogicLogos,'ultimate_logo_horiz_blue_on_white_small.jpg')}"/></center> <center><u> <apex:outputText value="{!$Organization.Street}" style="font-size:12px"/> <apex:outputText value="{!$Organization.City}, {!$Organization.State} {!$Organization.PostalCode}" style="font-size:12px"/> <apex:outputText value="{!$Organization.Phone}" style="font-size:12px"/> </u></center> <br></br><br></br> <br></br><center><apex:outputText value="Approved Funded Program Request" style="font-weight:bold; font-size:30px" /></center><br></br> <b> Date: </b> <apex:outputText value=" {!NOW()}" /><br></br><br></br> <br></br><center><apex:outputText value="Program Summary" style="font-weight:bold; font-size:20px" /></center><br></br> <b> Funded Request status: </b> <apex:outputText value="{!Funded_Program_Request__c.Funded_Request_Status__c}" /> <b> Funded Program Name: </b> <apex:outputText value="{!Funded_Program_Request__c.Name}" /> <b> Funded Request status: </b> <apex:outputText value="{!Funded_Program_Request__c.Funded_Request_Status__c}" /> <b> Source of Funding: </b> <apex:outputText value="{!Funded_Program_Request__c.Source_Of_Funding__c}" /> <b> Other Source of Funding: </b> <apex:outputText value="{!Funded_Program_Request__c.Other_Source_of_Funding__c" /> <b> Theater: </b> <apex:outputText value="{!Funded_Program_Request__c.Theater__c}" /> <b> Goal Alignment: </b> <apex:outputText value="{!Funded_Program_Request__c.Goal_Alignment__c}" /> <b> Product Focus: </b> <apex:outputText value="{!Funded_Program_Request__c.Theater__c}" /> <b> Other Product: </b> <apex:outputText value="{!Funded_Program_Request__c.Other_Product__c" /><br></br><center><apex:outputText value="Payment Information" style="font-weight:bold; font-size:20px" /></center><br></br><br></br> <b> Partner(Company Name): </b> <apex:outputText value="{!Funded_Program_Request__c.Partner__c}" /> <br></br> <br></br><b> <apex:panelGrid columns="3" width="100%"> <apex:outputText value="{!Funded_Program_Request__c.Street_Name__c}" /> <apex:outputText value="{!Funded_Program_Request__c.City__c}" /> <apex:outputText value="{!Funded_Program_Request__c.PostalCode__c}" /> </apex:panelGrid></b> <apex:panelGrid columns="3" width="100%"> <apex:outputText value="{!Funded_Program_Request__c.Partner_Contact__c}" /> <apex:outputText value="{!Funded_Program_Request__c.Contact_Email__c}" /> <apex:outputText value="{!Funded_Program_Request__c.Contact_Phone__c}" /> </apex:panelGrid> <br></br><br></br> <br></br><br></br> </body> </apex:page>
Please help!
Hi,
"Funded_Program_Request" is your custom object.u need to add '__c' at the end of the object Label like:
Funded_Program_Request__c.Name
Please let me know if u have any problem on same and if this post helps u please throw KUDOS by click on star at left.
All Answers
You should use relationship fields with __r . For example-Funded_Program_Request__r.Funded_Request_Status__c
Thank you. I updated the relationship fields. However I recieved another error:
Error: Unknown property 'Funded_Program_Request.Name' referenced in Approved_Funded_Program_Request
Hi,
"Funded_Program_Request" is your custom object.u need to add '__c' at the end of the object Label like:
Funded_Program_Request__c.Name
Please let me know if u have any problem on same and if this post helps u please throw KUDOS by click on star at left.