You need to sign in to do that
Don't have an account?
Edit opportunity and select products on the same page
Can you tell me if it is possible when editing the opportunity to also have the products list available too? Rather than having to edit the opportunity, press save, then Add a product. Is it possible to add the products at the same time as editing the opportunity.
I have been researching this and there is an example of a recruiting app mixing two objects on the one page. They have a many to many relationship just like opportunities to products but there is no standard controller for opportunity products and I believe the relationship is more complex that the recruiting app example. As the diagram in the link below illustrates;
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_erd_products.htm
Would anyone have any example code for this?
Unfortunately, I don't have any sample code for you, but its definitely possible to develop a custom Visualforce page that allows you to edit an Opportunity and its related Opportunity Products on a single page. You'll need to get familiar with Visualforce and Apex in order to develop this (unless a Good Samaritan has done this before and can post the code).
Hi There, thanks for your resonse and letting me know it's possible, yes, it would be great if someone could post an example of this code.