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

Get the Opportunity ID from VisualForce page
I have a custom object (Quote) that is master-detail relationship with Opportunity.
I also created a custom VF page for my quote page.
On save button event, I would like to do insert to my quote custom object and it requires me to provide the Opportunity ID from which I created this quote.
How can I get an opportunity ID since my standardController is actually my custom object?
In your controller you can do the following:
All Answers
How do you get to the quote page? If it is from a button on the opportunity, the id should be passed through on the URL. If not, presumably the user will need to select the opportunity?
Yes, it is through a button in opportunity and I attached the ID on the URL.
How to get the query string in visualforce page?
In your controller you can do the following: