+ Start a Discussion
GaneeeshGaneeesh 

How to add Create PDF(Quote1, Quote2, Quote3....) button on Opportunity Object...?

Normally we have Quotes related list on Opportunities, But here my requirement is I need "Create PDF" Button on Opportunity record page. Whenever we click on "Create PDF"  button a navigation menu will come which contain Quote1, Quote2, Quote3 ...... etc whenever we click on Quote1 , Quote1 pdf will generate. And whenever we click on Quote2 , Quote2 pdf will generate. How can i get this scenario...? 

Ashish_SFDCAshish_SFDC

Hi Ganesh, 

 

You have to create a button first that gets the list of Quotes available in it, 

 

<apex:page standardController="Quote">
  <apex:enhancedList type="Quote" height="700" rowsPerPage="50" id="AllQuotes">
  </apex:enhancedList>
</apex:page>

See the link below for the controller, 

http://salesforce.stackexchange.com/questions/12546/quote-visualforce-tab

 

Regards,

Ashish

 

Ashish_SFDCAshish_SFDC

Hi Ganesh, 

 

Also, See below for the code to be used for Create PDF on Quotes which can be along side the Selected Quote,

 

http://wiki.developerforce.com/page/Visualforce_Quote2PDF

 

Regards,

Ashish

GaneeeshGaneeesh

thanks ashish ,

 

here i need this...... if we have a Opportunity with name "Opp1", and this Opp1 record contains two Quote records those are named as Quote1 and Quote2. Then we have created a custom button named as "Create PDF" on opportunity records page. Whenever we click on Create PDF Button then it will shows one drop down menu  that drop down menu contains create pdf for Quote1 and create pdf for Qoute2.when ever we click create pdf fro Quote1 then pdf will be generate for quote1, and same as for create pdf for Quote2

Ashish_SFDCAshish_SFDC

Hi Ganesh, 

 

I do not think that is possible as the create PDF button can get a SOQL Visualforce page displaying the list of Quotes. there by selecting would fire the Create PDF of that particular record which i dont think is possible. 

 

Regards,

Ashish

Ashish_SFDCAshish_SFDC

Hi Ganesh, 

 

You can also try few apps in the appexchange if they have a better option of this, there are also apps from Salesforce Labs which are free 

 

https://appexchange.salesforce.com/results?keywords=quotes

 

https://appexchange.salesforce.com/listingDetail?listingId=a0N30000001TLtcEAG

 

Regards,

Ashish