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

use AddProduct button component in OpportunityLineItem standard controller

We have a "Add Product" button in the related list of Opportunity Product in Opportunity Tab.
I want to use this button component in other visual force page.

in the standard controller of OpportunityLineItem, componet doesn't work.

Is there any way to use this component?

If you want to create a button or link to the add products page you can use the $Action global in a URLFOR function.

Here's the action reference: {!$Action.OpportunityLineItem.AddProduct}

Check the online help for how to use URLFOR.  You can access online help by clicking on the help link in the upper right corner of the application after you have logged into your account.
thank you Andrew!
It's very helpful to me. ^^
This action works if you use that in the page how do you call that action in the controller . is there any URLFOR in apex? 
I tried 
return page.select_seach
it does not work