You need to sign in to do that
Don't have an account?

Displaying Opportunity field value in VF page rendered as PDF
Hi,
How can I display opportunity field value in VF page rendered as pdf. It only displays blank value..
Please help. Many Thanks in advance..
<apex:page showHeader="False" standardController="Opportunity" sidebar="false" renderAs="pdf" >
<apex:form >
<apex:outputText value="{!Opportunity.Street_1__c}"/>
</apex:form>
</apex:page>
The link should be something like this
https://cs4.salesforce.com/apex/quotation?id=opportunityIDVal
This way salesforce will pick the details of that particular opportuntiy and render on the page
All Answers
Does the URL that navigates to this VF page has value for id as query string parameter?
Also, i suggest you use apex:outputField tag instead.
One more thing, remove renderAs attribute and check if values are printed.
Hi Imran,
None. It is a custom opportunity link configured only as below.
https://cs4.salesforce.com/apex/quotation
Hope you can help on this..Thanks for a quick response..
Del
The link should be something like this
https://cs4.salesforce.com/apex/quotation?id=opportunityIDVal
This way salesforce will pick the details of that particular opportuntiy and render on the page
https://cs4.salesforce.com/apex/quotation?id={!Opportunity.Id}
Big thanks Imran! appreciate your help..
Hi Imran,
Sorry, one more thing, how can I display values in plain text? some values with data type as LOOKUP are displaying as link in the pdf page.
Thanks!
Del
For example if there is a lookup field named Sample__c, then to display the name rather than link, you should do it as
<apex:outputText value='{!Sample__r.name}'/>
Working.. Thanks Imran.. :)