function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KMS12KMS12 

Visual force page for opportunity product

HI,

 

I would like to create a button in "opportunity products" to accept a visual force page.

 

When I create a visual force page how do I associate it to come under opportunity products.

 

eg.<apex:page standardController="Opportunity">

 

Opportunity products does not come under standard controller nor custom object.

Best Answer chosen by Admin (Salesforce Developers) 
SPDSPD
to associate with opportunity products use OpportunityLineItem.

All Answers

SPDSPD
to associate with opportunity products use OpportunityLineItem.
This was selected as the best answer
KMS12KMS12

Thanks. This worked.

 

 

I have another clarification.

 

I want to add this visual force page to a button. This button will be placed in the opportunity products section of an opportunity detail page

 

In opportunity products "Buttons & Link" if I associate it to the following types of button it is not showing up in the page layout.

 

Detail page link

Detail page button

List Button)does not support visual force)

 

What could be the problem?

 

Thanks

 

SPDSPD
Just add it to your page layout...