Our company has a custom product selection tool on a visualforce page with its own apex class for the opportunity line item section. Is there a way I can create a custom button on the quote page that redirects to that opportunity line item's visualforce product selection page?
I have tried to reference it via URL but can't seem how to input the id into the url. I have tried creating a new apex class and visualforce page to redirect to that pagereference, but I keep getting this error: System.TypeException: Invalid conversion from runtime type SOBJECT:Quote to SOBJECT:Opportunity Class.QuoteExtController.: line 6, column 1
I also tried javascript as well on the button but kept getting the URL no longer exists message.
As a last resort I recreated the product selection tool for the quote line items and attempted to add that class as an extension on the opportunity visualforce product selection page.
Any ideas would be very helpful! Thank you :)