You need to sign in to do that
Don't have an account?
Customise Add Products to Opportunities
After creating an opportunity, we add products which require a number of custom fields to be filled out. The problem is if you select one or more products to add on the edit opportunity screen, and then go on to edit the products, there are so many picklists etc. that they cause horizontal scroll bars and it looks awful. I have been using Salesforce for about a week so obviously I'm very new to things but I experimented with trying to create a visualforce page I would eventually use to replace the poor-looking add products to opportunities. But is this possible? Looking at the data model I got very confused as to how to 'drive' the visualforce page, ie. should it be driven off an opportunity standardcontroller or something else? Also if I start with Opportunity, can I do {!opportunity.product2} or some such to access the products for that opportunity, so that I could then layout my own custom table/sections with appropriate input fields.
All help/pointers/adise appreciated!
Thanks.
Hey Dave,
This discussion on the boards should be able to point you in the direction of the solution.
http://boards.developerforce.com/t5/Apex-Code-Development/Overriding-Multi-line-layout-for-Opp-Products/m-p/254583#M44222
You are right in thinking that you would need to extend the Opportunity Standard Controller and yes you can access the Line Items off the Opportunity, using a query liket his
Select Id, Name, (Select Id, Description, Quantity from OpportunityLineItems) from Opportunity
Hi ,
I found out relevant information here for overridig Standard Product Selection to Custom Visual Force Page :
http://crawlapexnvisualforce.blogspot.in/2012/09/salesforce-opportunity-product-extension.html
This might help someone .