Can any one help me out.Any help is very much appreciated.
I have a custom object name as "RFC__c" and it has a lookup relationship with opportunity object.Now i would like to get the opportunity fields in RFC__c object in a VF page.How to call them.I do get an Error as :
Error: Invalid field Opportunity for SObject RFQ__c
Here is my VF Page :RFQ:
<apex:page Standardcontroller="RFQ__c" sidebar="false" showHeader="false" >
<apex:form id="RF">
<h1> <apex:sectionHeader title=" SALES REQUEST FOR QUOTE FORM(RFQ)" /> </h1>
<apex:pageblock >
<apex:pageBlockSection title="General Information">
<apex:inputField value="{!RFQ__c.Name}" label="Customer Name"/>
<apex:inputField value="{!RFQ__c.AccountType__c}"/>
<apex:inputField value="{!RFQ__c.Date__c}"/>
<apex:inputField value="{!RFQ__c.Response_Needed_By_Date__c}"/>
<apex:inputField value="{!RFQ__c.Expected_Order_Date__c}"/>
<apex:inputField value="{!RFQ__c.ProbabilityOf_Order_With_Requested_Price__c}"/>
<apex:inputField value="{!RFQ__c.Comments__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Price Request Details">
<apex:inputField value="{!RFQ__c.Opportunity.AccSegment__c}"/>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>
RFC__c
orRFQ__c
? 2). can you please check the WSDL for the correct relationship name?